<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@ taglib prefix="s" uri="/struts-tags"%>
<%@taglib prefix="pu" uri="/WEB-INF/tld/pageutil.tld" %>
<%@taglib prefix="mu" uri="/WEB-INF/tld/mallutil.tld" %>
<%@taglib uri="http://java.sun.com/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jstl/core_rt" prefix="c-rt"%>
<%@taglib uri="http://java.sun.com/jstl/fmt_rt" prefix="fmt-rt"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@taglib uri="/WEB-INF/tld/pageable.tld" prefix="pageable"%>
<%@taglib uri="/WEB-INF/tld/importTag.tld" prefix="import" %>
<%@page import="com.yaodian100.core.common.utils.ServerValue"%>
<c-rt:set var="hostName" value='<%=ServerValue.getFrontHostname()%>'/>
<c-rt:set var="frontendContextPath"><%=ServerValue.getFrontContextPath()%></c-rt:set>
<style> 
.promo-popup{padding:10px;*padding:10px 0 10px 8px; color:#666;line-height:1.4em; }
.promo-popup h2,.promo-popup h3{font-size:15px;color:#d12e6f; margin-bottom:.8em;}
.promo-popup h3{color:#666;}
.promo-popup p{margin:.5em 0;}
.promo-popup .d-line{background:url(/images/link_dote.gif) repeat-x scroll 0 50%; padding:1px 0;}
.promo-popup ol,.promo-popup ul{margin-bottom:1em;margin-left:2em;}
.promo-popup li{list-style:decimal;}
</style>
 ${pu:reqSet('params',null)}
${pu:reqSet('order', pu:get('com.yaodian100.ec.order.entity.Orders', param.orderId)) }
${pu:reqSet('orderStMenu', pu:get('com.yaodian100.core.menu.entity.Menu', "Order.status")) }
${pu:reqSet('paymentTpMenu', pu:get('com.yaodian100.core.menu.entity.Menu', "Order.PaymentTp")) }
${pu:reqSet('changeRule', pu:get('com.yaodian100.core.menu.entity.Menu', "Order.ReturnRule")) }
${pu:reqSet('returnStatus', pu:get('com.yaodian100.core.menu.entity.Menu', "ServiceOrder.return.status")) }
${pu:reqSet('changeStatus', pu:get('com.yaodian100.core.menu.entity.Menu', "ServiceOrder.change.status")) }
${pu:reqSet('refundStatus', pu:get('com.yaodian100.core.menu.entity.Menu', "ServiceOrder.fmReturnSt")) }

${pu:reqSet('soHql', 'from ServiceOrders where orderId=?') }
${pu:listAdd('params', order.orderId) }
${pu:reqSet('serviceOrders', pu:queryByHql(soHql, pu:arrayGet('params'), null)) }

<script>
$(function(){ 
	$('#current_location').html(' > <a href="${frontContextPath }/ecmall/member/myOrder/showOrders.do?t=T&p=1&hpp=tpbar_1">我的订单</a> > 订单明细');
}); 
</script>
<c-rt:if test="${order.memberId==mu:memberId()}">
<%--出货查询 --%>
  <c-rt:set scope="request"  var="logisticComp" value=""/>
  <c-rt:set var="logisticNum" value="${null }"/>
  <c-rt:set var="logisticUrl" value="${null }"/>
  <c-rt:set var="logisticDisplay" value="Y"/>
  <c-rt:set var="logistic" value="N"/>
    <c-rt:forEach items="${order.orderProduct }" var="op" varStatus="opStatus">
    <c-rt:if test="${empty logisticNum && logistic!='Y'}">
    <c-rt:choose>
		<c-rt:when test="${(!empty op.logisticCompany2) && (op.logisticCompany2 != ' ')}">		
    		<c-rt:set scope="request" var="logisticNum" value="${op.logisticNo } " />
    		
    		${pu:reqSet('lc', pu:get('com.yaodian100.crm.workorder.entity.LogisticProvider', op.logisticCompany2)) }
    		
    		<c-rt:if test="${!empty lc}">
    			<c-rt:set scope="request" var="logisticComp" value="${lc.name} " />
    			<c-rt:set scope="request" var="logisticUrl" value="${lc.searchUrl} " />
    		</c-rt:if>
    		<c-rt:if test="${empty lc}">
    			<c-rt:set scope="request" var="logisticComp" value="${op.logisticCompany2}" />
    		</c-rt:if>
    		
    		<c-rt:set var="logistic" value="Y"/>
		</c-rt:when>
		<c-rt:otherwise>
			<c-rt:if test="${(!empty op.logisticCompany) && (op.logisticCompany != ' ')}">
				<c-rt:set scope="request" var="logisticNum" value="${op.logisticRefNum } " />
				${pu:reqSet('lc', pu:get('com.yaodian100.crm.workorder.entity.LogisticProvider', op.logisticCompany)) }
				
    			<c-rt:if test="${!empty lc}">
	    			<c-rt:set scope="request" var="logisticComp" value="${lc.name} " />
	    			<c-rt:set scope="request" var="logisticUrl" value="${lc.searchUrl} " />
	    		</c-rt:if>
	    		<c-rt:if test="${empty lc}">
	    			<c-rt:set scope="request" var="logisticComp" value="${op.logisticCompany2}" />
	    		</c-rt:if>
	    		<c-rt:set var="logistic" value="Y"/>
				</c-rt:if>
		</c-rt:otherwise>
	</c-rt:choose>
    </c-rt:if>
    <c-rt:if test="${empty logisticComp || logisticComp==''|| logisticComp== 'null'}">     
	  <c-rt:if test="${!empty op.logisticCompany && logisticComp!=''}">
	  	<c-rt:set var="logisticComp" value="${op.logisticCompany} " />
	  </c-rt:if>
	  <c-rt:set var="logisticDisplay" value="N"/>
	</c-rt:if>
	
    </c-rt:forEach>
    
   

<%--判斷訂單修改 --%>
<c-rt:set var="canChgPaymentIfo" value="N"/>
<c-rt:set var="canChgRecvInfo" value="N"/>
<c-rt:choose>
 	<c-rt:when test="${order.paymentTp=='30' || order.paymentTp=='60'}">
		<c-rt:if test="${order.orderSt=='00'}">
			<c-rt:set var="canChgPaymentIfo" value="Y"/>
			<c-rt:set var="canChgRecvInfo" value="Y"/>
		</c-rt:if>
		<c-rt:if test="${order.orderSt=='20' }">
			<c-rt:set var="canChgRecvInfo" value="Y"/>
		</c-rt:if>
	</c-rt:when>
	 <c-rt:when test="${order.paymentTp=='50'||order.paymentTp=='70'}">
		<c-rt:if test="${order.paymentSt=='00'&& order.orderSt == '10'}">
			<c-rt:set var="canChgPaymentIfo" value="Y"/>
			<c-rt:set var="canChgRecvInfo" value="Y"/>
		</c-rt:if>
		<c-rt:if test="${order.paymentSt=='10' && !order.sync && order.orderSt == '20'}">
			<c-rt:set var="canChgRecvInfo" value="Y"/>
		</c-rt:if>
	</c-rt:when>
	<c:otherwise>
		<c-rt:if test="${order.paymentSt=='00'&& order.orderSt == '10'}">			
			<c-rt:set var="canChgRecvInfo" value="Y"/>
		</c-rt:if>
		<c-rt:if test="${order.paymentSt=='10' && !order.sync && order.orderSt == '20'}">
			<c-rt:set var="canChgRecvInfo" value="Y"/>
		</c-rt:if>			          
	</c:otherwise> 
</c-rt:choose>
<%--標示訂單修改changeReceiverAddr, changeReceiverName,changeReceiverMobile,changeShipfare,changePaymentTp--%>
<c-rt:set var="changeReceiverAddr" value="N"/>
<c-rt:set var="changeReceiverName" value="N"/>
<c-rt:set var="changeReceiverMobile" value="N"/>
<c-rt:set var="changeReceiverPhone" value="N"/>
<c-rt:set var="changeShipfare" value="N"/>
<c-rt:set var="changePaymentTp" value="N"/>
<c-rt:set var="changeMywallet" value="N"/>
<c-rt:set var="changeCodFee" value="N"/>

<c-rt:forEach items="${orderChangeInfo}" var="oci">
	<c-rt:if test="${oci == 'receiverAddr'}">
		<c-rt:set var="changeReceiverAddr" value="Y"/>
	</c-rt:if>
	<c-rt:if test="${oci=='receiverName'}">
		<c-rt:set var="changeReceiverName" value="Y"/>
	</c-rt:if>
	<c-rt:if test="${oci=='receiverMobile'}">
		<c-rt:set var="changeReceiverMobile" value="Y"/>
	</c-rt:if>
	<c-rt:if test="${oci=='receiverPhone'}">
		<c-rt:set var="changeReceiverPhone" value="Y"/>
	</c-rt:if>
	<c-rt:if test="${oci=='shipfare'}">
		<c-rt:set var="changeShipfare" value="Y"/>
	</c-rt:if>
	<c-rt:if test="${oci=='paymentTp'}">
		<c-rt:set var="changePaymentTp" value="Y"/>
	</c-rt:if>
	<c-rt:if test="${oci=='myWallet'}">
		<c-rt:set var="changeMywallet" value="Y"/>
	</c-rt:if>
	<c-rt:if test="${oci=='codFee'}">
		<c-rt:set var="changeCodFee" value="Y"/>
	</c-rt:if>

</c-rt:forEach>

<script>
$().ready(function(){
	$("#postOffice").click(function(){
		openDialog("邮局汇款单范例",$("#divPostOffice").load("/pages/CART/step03_demo_postoffice.html"),600,580);	
	});
	$("#cancelOrder").click(function(){
		doAR('${frontendContextPath}/member/serviceOrder/toCancelOrder.do?orderId=${order.orderId}', 'cancelDialog');
		openDialogById('取消订单',null,450,310,'cancelDialog');
	});
	
	$("#bank").click(function(){
		openDialog("银行汇款单范例",$("#divBank").load("/pages/CART/step03_demo_bank.html"),600,580);	
	});
	<c-rt:if test="${order.receiverTp=='30'}">
	var dpnNotice = ' <p><strong>达芙妮门店取货注意事项：</strong></p>'+
       ' <p>• 到货时，系统将以email及短信通知您取货时间。<br>'+
        '  • 请于到货后<span class="txt-rd">7天</span>内至门店取货。<br>'+
        '  • 取货时，必须由<span class="txt-rd">收货本人出示有效证件</span>或<span class="txt-rd">手机取货短信</span>，方可领货。<br>'+
       ' • 逾期未领货，系统将自动取消您的订单，提醒您尽早取货。</p>';
      //class="atstore-end"
    $("#dpnNoicte").html(dpnNotice).addClass('atstore-end');
    </c-rt:if>
});

function alertMaintain(){
	alertText = "耀点100向您保证自您购买商品日（以商品之签收日为准）起至三包有效期内，<br>"+
		"我们将提供您符合三包规定范围内的维修保证。<br><br>"+
		"如您所购买的商品于保修期内，在个人正常使用的情况下出現質量問題时，<br>"+
		"您可拨打客服专线：<strong class=\"txt-rd txt-L\">4001-168-100</strong><br>"+
		"客服人员将和您了解商品使用情况并指导您进行后续处理，或告知您如何退回需要维修的商品。<br><br>"+
		"提醒您：为了不耽误您使用，缩短故障商品的维修时间，我们建议您直接联系生产厂家售后服务中心进行处理，或者您也可以直接在商品的保修卡中查找该商品对应的全国各地生产厂家售后服务中心联系处理";
	alertDialog('保修服务说明',alertText,'',600,350);
}	

function openLogisticInfo(){
	
	var html='<div class="ui-dialog-content ui-widget-content" id="dialog" style="height: 250px; min-height: 110px; width: auto;">'+
		 ' <p>1. 在与耀点100配合的物流公司网站查询页中，输入所要查询的商品快递单号，可得知商品最新配送进度。</p><br>'+
		  '<p>2. 如配送公司无查询介面，请与客服联络，我们将为您查询。</p><br>'+
		  '<p>3. 因配送作业关系，商品发货1天后，您方可查询到出货进度。</p><br>'+
		  '<p>4. 如查询时遇到问题，请致电客服：4001-168-100。</p><br>'+
		  '<div align="center"> <span style="text-align: center;">'+
		  "<a class=\"btn-mid\" href=\"${logisticUrl}\" target=\"_blank\" onclick=\"goLogistic();return false;\">进一步查询</a>"+
		  '<a class="btn-mid" href="javascript:;" onclick="closeDialog();return false;">关闭</a></span> </div>'+
		'</div>';
	openDialog('快递单号查询', html, 430, 300);
}
function goLogistic(){
	window.open("${logisticUrl}");
	closeDialog();
}
function openChgOrder(val){
	var selectItem = '';
	if(val == '1'){
		selectItem = '	<li class="w-1of1"><label><input type="radio" value="PaymentTp" name="ChgOrdTp" disabled> 修改支付方式</label></li>'+
		'	<li class="w-1of1"><label><input type="radio" value="RecvInfo" name="ChgOrdTp" checked> 修改收货人信息</label></li>'+
		'	<li class="w-1of1"><label><input type="radio" value="InvoInfo" name="ChgOrdTp" > 修改发票信息</label></li>';
	} else if (val = '2'){
		selectItem = '	<li class="w-1of1"><label><input type="radio" value="PaymentTp" name="ChgOrdTp" checked> 修改支付方式</label></li>'+
		'	<li class="w-1of1"><label><input type="radio" value="RecvInfo" name="ChgOrdTp"> 修改收货人信息</label></li>'+
		'	<li class="w-1of1"><label><input type="radio" value="InvoInfo" name="ChgOrdTp" > 修改发票信息</label></li>';
	}
	var html='<div class="ui-dialog-content ui-widget-content" id="dialog" style="height: auto; min-height: 110px; width: auto;">'+
			'<ul>'+				
			selectItem+
			'</ul>'+
		  	'<p align="center" style="padding: 5px 0pt;" class="c-f"><a onfocus="blur()" class="btn-mid" href="javascript:;" onclick=\"goModifyOrd(${order.orderId});return false;\">确定</a></p>'+
			'</div>';
	openDialog('请选择您所要修改的订单内容', html, 250, 160);
}
function goModifyOrd(ord){
	var chgTp = $('input[name=ChgOrdTp]:checked').val();
	if(chgTp == 'RecvInfo'){
		location.href='<c-rt:url value="/member/orderMod/modAddres.do?orderId=${order.orderId}"/>';
		closeDialog();
	}else if (chgTp == 'PaymentTp'){			
		location.href='<c-rt:url value="/member/orderMod/modPay.do?orderId=${order.orderId}"/>';
		closeDialog();
	}else if (chgTp == 'InvoInfo'){			
		location.href='<c-rt:url value="/member/orderMod/modInvoice.do?orderId=${order.orderId}"/>';
		closeDialog();
	}
	
}
</script>
<s:actionerror />
<div id="dialog"></div>
 <div class="content mb-od-dtl wd-all">
  <s:if test="hasActionMessages()">
	<s:iterator value="actionMessages"> 
		<div class="od-mofdify-stat" id="showErr">
		<script>
				$().ready(function() {	
					var actionMessage="<s:property escape='false'/>";
						if(actionMessage=="mustpay>virtualbalance"){
							$("#showErr").append("帳戶余額不足，請改用其他支付方式");
						}else if(actionMessage=="zipCode error"){
							$("#showErr").append("<span class='txt-rd'>邮编错误</span>");
						}else{
							$("#showErr").append("很抱歉，商品发货处理中，您已无法修改订单");
						}
				});
		</script>
		</div>
	</s:iterator>  
</s:if>	
  	<c-rt:if test="${changeReceiverAddr=='Y'||changeReceiverName=='Y'||changeReceiverMobile=='Y'}">
	  	<div class="od-mofdify-stat">
	          <p>您已变更了此订单的
	          ${changeReceiverAddr=='Y' && order.receiverTp!='30'?"「收货地址」":""}
	          ${changeReceiverAddr=='Y'&& order.receiverTp=='30'?"「取货门店」":""}
	          ${changeReceiverName=='Y'?"「收货人姓名」":""}
	          ${changeReceiverMobile=='Y'?"「收货人联络电话」":""}
	          ，变更信息标示为<span class="txt-rd">红色</span>如下。<br>
	          <c-rt:if test="${changeShipfare=='Y'||changeMywallet=='Y'||changeCodFee=='Y'}">
	          	订单金额已相应变更，更新后的金额标示为<span class="txt-rd">红色</span>如下。
	          </c-rt:if>
	          </p>
		</div>
	</c-rt:if>
	<c-rt:if test="${changePaymentTp=='Y'}">
	 <c-rt:if test="${order.paymentTp=='10'||order.paymentTp=='20'||order.paymentTp=='50'||order.paymentTp=='70'}">
	<div class="od-mofdify-stat">	
       <p>您已变更了此订单的支付方式，请依照订单状态指示进行付款，我们将会尽快为您发货。<br>
      		 <c-rt:if test="${changeShipfare=='Y'||changeMywallet=='Y'||changeCodFee=='Y'}">
	          	订单金额已相应变更，更新后的金额标示为<span class="txt-rd">红色</span>如下。
	          </c-rt:if>
       </p>
     </div>
     </c-rt:if>
     <c-rt:if test="${order.paymentTp=='40'}">
     <div class="od-mofdify-stat">
       <p>您已变更了支付方式為帐户余额，并已全额付清，商品将于近日发出。<br>
        	<c-rt:if test="${changeShipfare=='Y'||changeMywallet=='Y'||changeCodFee=='Y'}">
	          	订单金额已相应变更，更新后的金额标示为<span class="txt-rd">红色</span>如下。
	          </c-rt:if>
       </p>
     </div>
     </c-rt:if>
     <c-rt:if test="${order.paymentTp=='30'||order.paymentTp=='60'}">
     <div class="od-mofdify-stat">
       <p>您已变更了支付方式為貨到付款，商品将于近日发出。<br>
        <c-rt:if test="${changeShipfare=='Y'||changeMywallet=='Y'||changeCodFee=='Y'}">
	          	订单金额已相应变更，更新后的金额标示为<span class="txt-rd">红色</span>如下。
	          </c-rt:if>
       </p>
     </div>
     </c-rt:if>
     </c-rt:if>

 <h2>订单明细</h2> 
    <!-- 我的訂單 --> 
   	<div>
        <h3>订单状态</h3>
        <!-- 等待付款-->
        <div class="od-stat-area">
        	<div class="f-rt">
        		<c-rt:set var="allowSplit" value="N"/>
				<c-rt:if test="${fn:length(order.orderProduct)>1 && order.paymentTp != '30' && order.paymentTp != '60' && order.receiverTp != '30'}">
					<c-rt:set var="allowSplit" value="Y"/>	
				</c-rt:if>
	           <c-rt:if test="${canChgPaymentIfo== 'N' && canChgRecvInfo== 'Y'}">
		   			<a href="javascript:;" onclick="openChgOrder('1','${order.orderId}','${allowSplit}');return false;" >修改订单</a>
		   		</c-rt:if>
		   		<c-rt:if test="${canChgPaymentIfo== 'Y' && canChgRecvInfo== 'Y'}">
		   			<a href="javascript:;" onclick="openChgOrder('2','${order.orderId}','${allowSplit}');return false;">修改订单</a>
		   		</c-rt:if>
		   		<c-rt:if test="${order.orderSt == '00' || order.orderSt == '10' || order.orderSt == '20'}">
					<c-rt:if test="${(canChgPaymentIfo== 'N'||canChgPaymentIfo== 'Y') && canChgRecvInfo== 'Y'}"> | </c-rt:if><a id="cancelOrder" href="javascript:;">取消订单</a>
				</c-rt:if>
			</div>
         <ul>
            	<li class="w-1of4"><strong>订单号：</strong>${order.orderId}</li>
				<li class="w-1of4"><strong>订单状态：</strong>
				<c-rt:choose>
					<c-rt:when test="${order.orderSt=='32' && order.receiverTp=='30'}">已送达门店</c-rt:when>
					<c-rt:when test="${order.orderSt=='35' && order.receiverTp=='30'}">已取货</c-rt:when>
					<c-rt:when test="${order.orderSt=='35' && order.receiverTp=='30'}">已取货</c-rt:when>
					<c:otherwise>${orderStMenu.options[order.orderSt].name}</c:otherwise>
				</c-rt:choose>
				</li>
				<li class="w-1of2"><strong>应付金额：￥</strong><fmt:formatNumber pattern="######0.0"  value="${order.joinMustPay}"/>元 
          			<c-rt:if test="${order.orderId ne order.joinOrders}"> 
					${pu:reqSet('joinOrdersId',null)}
					${pu:reqSet('sopHql', 'from Orders where joinOrders=?')}
					${pu:listAdd('joinOrdersId', pu:toString(order.joinOrders))}							
					${pu:reqSet('joinOrderList', pu:queryByHql(sopHql, pu:arrayGet('joinOrdersId'), null))}
					<b class="od-more-dtl" onmouseover="$('#share-join_${order.orderId}_${pcounter}').show();" onmouseout="$('#share-join_${order.orderId}_${pcounter}').hide();">
						<div id="share-join_${order.orderId}_${pcounter}"  class="show-more-dtl" style="display:none;">
							<b>&nbsp;</b>
							<h6>关联订单</h6>
							<p>您结帐时生成以下订单，他们需要一起支付，若修改支付方式或取消其中一单时，另一单将会被一起处理：</p>
							<table class="tb-2">
							<tr>
                                  <th width="110">订单编号</th>
                                  <th width="215">订购商品</th>
                                  <th width="70">应付金额</th>
							</tr>
							<c-rt:if test="${joinOrderList !=null}">
								<c-rt:forEach items="${joinOrderList}" var="joinOrderList" varStatus="status">
							<tr>
								<td>
								 <a  href="${frontendContextPath}/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}">${joinOrderList.orderId}</a>
								</td>
								<td><p>					
									<c-rt:forEach items="${joinOrderList.orderProduct}" var="product" begin="0" end="${fn:length(joinOrderList.orderProduct)>3 ? '2' : fn:length(joinOrderList.orderProduct)}" varStatus="pi">						
										<a class="pd-img" href="${frontendContextPath}/product/product.do?productId=${product.prodId}&hpp=history" target="_blank"><img width="50" height="50" alt="" src="${imgDomain}/PImg/${pu:substring(product.prodId, 0,4) }/${product.prodId}/${product.prodId}_m50.jpg" onError="this.src='/PImg/blank_50.gif'" title="${product.prodName}-${product.prodSpecName}"></a>
									</c-rt:forEach>
									<c-rt:if test="${fn:length(joinOrderList.orderProduct)>3}"><a href="${frontendContextPath}/member/order/page.do?page=detail&orderId=${joinOrderList.orderId}"><span class="pd-more">...更多</span></a></c-rt:if>
								</p></td>
								 <td><div class="t-align-R">￥<fmt:formatNumber pattern="######0.0"  value="${pu:rmb(joinOrderList.mustPay) }"/>元</div></td>
							</tr>	
								</c-rt:forEach>
							</c-rt:if>  
						</table>
							<p>若有疑问可致电4001-168-100询问客服</p>
					</div><span>(关联订单)</span></b>
				</c-rt:if>
				<fmt:formatDate value="${order.deadline}" pattern="yyyyMMdd2359" var="paydeadline"/>
				<c-rt:set var="today" value="<%=new java.util.Date()%>" />
				<fmt:formatDate value="${today}" pattern="yyyyMMddHHmm" var="now"/>
				<c-rt:if test="${order.orderSt == '10' && now < paydeadline && (order.paymentTp == '50'|| order.paymentTp == '70'|| order.paymentTp == '80')}">		        		
					<a href="${frontContextPath}/ecmall/shopping/paymentInfo/paymentInfoView.do?orderId=${order.orderId}" class="btn-mid">网上支付</a>
				</c-rt:if>
          		</li>
          </ul>       
			<p>
            <c-rt:choose>
	             <c-rt:when test="${order.orderSt=='10'}">
		           	 我们还没收到该订单的款项，请在<strong class="txt-rd"><fmt-rt:formatDate value="${order.deadline}" pattern="yyyy-MM-dd HH:mm"/></strong>以前支付，若逾期付款系统将自动取消该订单    
	            </c-rt:when>
			    <c-rt:when test="${order.orderSt=='00' && (order.paymentTp=='30'||order.paymentTp=='60')}">			     
				  	 订单审核中，请等候客服人员与您联系并确认订单信息。
			    </c-rt:when>
			    <c-rt:when test="${order.orderSt=='00' && (order.paymentTp=='10'||order.paymentTp=='20'||order.paymentTp=='50'||order.paymentTp=='70'||order.paymentTp=='80')}">		     
				   	我们的客服人员将尽速透过电话与您联系，向您确认订购内容，请务必保持电话畅通。
			    </c-rt:when>
			    <c-rt:when test="${order.orderSt=='82'}">
					客服人员与您确认订单信息失败，我们已将该笔订单取消			     
			    </c-rt:when>
			     <c-rt:when test="${order.orderSt=='20' && (order.paymentTp=='30'||order.paymentTp=='60')}">			    
				     <c-rt:forEach items="${order.orderProduct }" var="op">
				     	<c-rt:if test="${op.prodTp=='1'}">
				     		<c-rt:set var="isPreBuy" value="${true }"/>
				     		<c-rt:set var="theProduct" value="${op.prodId }"/>
				     	</c-rt:if>
				     </c-rt:forEach>
				     <c-rt:if test="${isPreBuy}">
				     ${pu:reqSet('product', pu:get('com.yaodian100.ec.product.entity.Product', theProduct)) }
				  	   本商品为预购商品，預計于 <fmt-rt:formatDate value="${product.expectShipDate }" pattern="yyyy-MM-dd"/> 后開始发货。
				     </c-rt:if>
				     <span  id="c"></span>			     
	     		</c-rt:when>
	     		
	     		<c-rt:when test="${order.orderSt=='20' && (order.paymentTp!='30' && order.paymentTp!='60')}">
				     <c-rt:forEach items="${order.orderProduct }" var="op">
				     	<c-rt:if test="${op.prodTp=='1'}">
				     		<c-rt:set var="isPreBuy" value="${true}"/>
				     		<c-rt:set var="theProduct" value="${op.prodId }"/>
				     	</c-rt:if>
				     </c-rt:forEach>
				     <c-rt:if test="${isPreBuy}">
				     	${pu:reqSet('product', pu:get('com.yaodian100.ec.product.entity.Product', theProduct)) }
				    	 本商品为预购商品，預計于 <fmt-rt:formatDate value="${product.expectShipDate }" pattern="yyyy-MM-dd"/> 后開始发货。
				     </c-rt:if>
				     <c-rt:if test="${!isPreBuy}">
				     	付款完成，等待配货
				     </c-rt:if>
				     <span  id="dpnNoicte"></span>			     
	     		</c-rt:when>
	     		 <c-rt:when test="${order.orderSt=='25'}">
				    <span  id="dpnNoicte"></span>			    
	     		</c-rt:when>
	     		<c-rt:when test="${order.orderSt=='30'}">
				     <c-rt:if test="${!empty order.orderProduct[0].logisticSendDt}">您订购的商品已于<fmt-rt:formatDate value="${order.orderProduct[0].logisticSendDt }" pattern="yyyy-MM-dd"/>发货</c-rt:if>
				     <c-rt:if test="${empty order.orderProduct[0].logisticSendDt }">您订购的商品已经发货</c-rt:if>
				     <c-rt:if test="${order.paymentTp=='30'}">，请在收货时向送货员支付您的货款</c-rt:if><c-rt:if test="${order.paymentTp=='60'}">，请於货物送达时完成POS机刷卡支付</c-rt:if>。			          
				    <span  id="dpnNoicte"></span>			    
	     		</c-rt:when>
	     		<c-rt:when test="${order.orderSt=='32'}">
				    <c-rt:if test="${order.receiverTp=='30'}">请于<span class="txt-rd"><strong><fmt-rt:formatDate value="${pu:addDays(order.logisticFinalDt, 7) }" pattern="yyyy-MM-dd"/></strong></span>前至您指定的门店取货。</c-rt:if>    
				    <span  id="dpnNoicte"></span>
	     		</c-rt:when>
	     		<c-rt:when test="${order.orderSt=='35'}">
				    <c-rt:if test="${order.receiverTp=='30'}">商品已经于<span class="txt-rd"><strong><fmt-rt:formatDate value="${order.logisticSignDt }" pattern="yyyy-MM-dd"/></strong></span>取货</c-rt:if>
				    <c-rt:if test="${order.receiverTp!='30'}">订单中商品已送达，若还未收到商品请稍作等待。</c-rt:if>    
				    <span  id="dpnNoicte"></span>
	    		</c-rt:when>
	            <c-rt:when test="${order.orderSt=='90'}">
	         	  订单交易成功，感谢您对耀点100的支持，您的每笔订单都是我们成长的基石。 
					 <span  id="dpnNoicte"></span> 
	    		</c-rt:when>
	    		<c-rt:when test="${order.orderSt=='70'}">
					    此笔订单<span class="txt-rd">交易未成功</span>，可能原因如下：
				      	<p>1. 商品无人接收。</p>
				      	<p>2. 您已拒收商品。</p>
				      	<p>3. 您的收货地址不支援货到付款。</p>
				      	<p>4. 您逾期未至达芙妮门店取货。</p>
				        <p>&nbsp;</p>
					    <p>若您已支付货款，我们将於10日内进行退款。</p>     
	     		</c-rt:when>
	     		<c-rt:when test="${order.orderSt=='81'}">
					 您已于<fmt-rt:formatDate value="${order.modifyDate }" pattern="yyyy-MM-dd HH:mm"/>取消订单。
	     		</c-rt:when>
	     		<c-rt:when test="${order.orderSt=='80'}">    
				   	系统已于<fmt-rt:formatDate value="${order.modifyDate }" pattern="yyyy-MM-dd HH:mm"/>取消订单。   
	     		</c-rt:when>
	     		<c-rt:when test="${order.orderSt=='60'}">
					 商品无法发货，订单已取消。
	     		</c-rt:when>
	     		<c-rt:when test="${order.orderSt=='61'}">
				  	商品无法发货，等待退款
	     		</c-rt:when>
		    </c-rt:choose>
        </p>
        </div>
      
   
   		<c-rt:if test="${not empty logisticComp && logisticComp != ''}"> 
   		<h3><strong class="txt-m">物流跟踪</strong></h3> 
			<ul class="d-show">
			   <li class="li-w1"><strong>快递单号：</strong><span class="txt-rd">${logisticNum }</span><c-rt:if test="${logisticDisplay=='Y'}"><a a href="javascript:;" onclick="openLogisticInfo();return false;" > &gt;&gt;查询商品发货进度</a></c-rt:if></li>
			   <li class="li-w1"><strong>配送公司：</strong>${logisticComp}</li>
			</ul>
		</c-rt:if>
		
    <!-- 訂單明細 --> 
    <h3>商品清单</h3> 
		<div class="od-detail"> 
	     <table width="100%" class="tb-2">
              <tr>
                <th width="420">商品名称</th>
                <th width="50">类型</th>
                <th width="105">属性</th>
                <th width="70">单价</th>
                <th width="40">数量</th>
                <th width="70">小计</th>
                <th width="80">操作</th>
                <th width="46">客服</th>
             </tr>
             <%--對有service order的order分類 --%>
			<c-rt:set var="paramsSo" value="${null }"/>
			<c-rt:set var="serviceOrderReturn" value="${null }"/>
			<c-rt:set var="serviceOrderChange" value="${null }"/>
			<c-rt:set var="serviceOrderRefund" value="${null }"/>
			<c-rt:set var="serviceOrderReturnP" value="${null }"/>
			<c-rt:set var="serviceOrderChangeP" value="${null }"/>
	        <c-rt:forEach items="${serviceOrders}" var="serviceOrder" varStatus="soi">
				<c-rt:if test="${serviceOrder.orderId == order.orderId}">					
					<c-rt:if test="${serviceOrder.srcType == 1}">
					${pu:listAdd('serviceOrderReturn', serviceOrder)}	
					<c-rt:set var="paramsSop" value="${null }"/>
					${pu:reqSet('sopHql', 'from ServiceOrderProduct where serviceId=? ')}
					${pu:listAdd('paramsSop', pu:toString(serviceOrder.serviceId))}							
					${pu:reqSet('serviceOrderProducts', pu:queryByHql(sopHql, pu:arrayGet('paramsSop'), null))}		
						<c-rt:forEach items="${serviceOrderProducts}" var="serviceOrderP" varStatus="sopi">
							${pu:listAdd('serviceOrderReturnP', serviceOrderP)}
						</c-rt:forEach>
					</c-rt:if>
					
					<c-rt:if test="${serviceOrder.srcType == 2}">
					${pu:listAdd('serviceOrderChange', serviceOrder)}
					<c-rt:set var="paramsSop" value="${null }"/>
					${pu:reqSet('sopHql', 'from ServiceOrderProduct where serviceId=? ')}
					${pu:listAdd('paramsSop', pu:toString(serviceOrder.serviceId))}							
					${pu:reqSet('serviceOrderProducts', pu:queryByHql(sopHql, pu:arrayGet('paramsSop'), null))}			
						<c-rt:forEach items="${serviceOrderProducts}" var="serviceOrderC" varStatus="sopi">
							${pu:listAdd('serviceOrderChangeP', serviceOrderC)}
						</c-rt:forEach>
					</c-rt:if>
					
					<c-rt:if test="${serviceOrder.srcType !=2}">
						${pu:listAdd('serviceOrderRefund', serviceOrder)}
					</c-rt:if>
						
					
				</c-rt:if>
			</c-rt:forEach>
	        <c-rt:set var="pcounter" value="0" /> 
	        <c-rt:forEach items="${order.orderProduct }" var="op" varStatus="opStatus">
	        <c-rt:set var="pcounter" value="${pcounter+1}" />
			<c-rt:if test="${op.prodTp=='6'}">
	          	<tr>
	            	<td colspan="5" align="left" class="table-in" style="text-align:left">
	            		<table border="0" width="100%">
	                	<tr>
	                	<c-rt:set var="shareLinkPath" value='${hostName}${frontendContextPath}/product/product.do?productId=${op.prodId}'/>
		                  <td width="420"><p><a href="${shareLinkPath}" class="od-name" target="_blank"><span class="type-6">活动</span> ${op.prodName}</a>
				          <c-rt:set var="happyText" value='《${op.prodName}》商品优质，价格便宜，赶快去看看！'/>
				          <a class="icon-change" target="_blank" href="/help/8_policy.html"><img alt="${changeRule.options[op.returnRule].name}" title="${changeRule.options[op.returnRule].name}" src="/images/returnRule/${op.returnRule }.gif"></a></p>
				          <div class="share-to" onmouseover="$('#share-list01_${op.prodId}_${pcounter}').show();" onmouseout="$('#share-list01_${op.prodId}_${pcounter}').hide();">分享到
				          <b></b>
                          	<div id="share-list01_${op.prodId}_${pcounter}" class="share-list" style="display:none">
                          	<div class="share-kaixi"><a href="javascript:traceVirtualPage('/product.do?productId=${op.prodId}&hpp=kaixinmck_order');window.open('http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent('我在 耀点100 网站买了这件促销商品很不错，推荐给大家！')+'&rurl='+encodeURIComponent('${shareLinkPath}')+'&rcontent=' + encodeURIComponent('${fn:escapeXml(happyText)}') ,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0;" class="shareto L01" style="cursor: pointer;cursor:hand;" title="分享到开心网！" >开心网</a></div>
                         	<div class="share-renren"><a href="javascript:traceVirtualPage('/product.do?productId=${op.prodId}&hpp=renrenmck_order');void((function(s,d,e){var f='http://share.renren.com/share/buttonshare?link=',u='${shareLinkPath}&hpp=renren',l='',p=[e(u),'&title=',e(l)].join('');function a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent));" class="shareto L02" style="cursor: pointer;cursor:hand;" title="分享到人人网！">人人网</a></div>
                          	<div class="share-qq"><a href="javascript:traceVirtualPage('/product.do?productId=${op.prodId}&hpp=qqmck_order');postToWb();" class="shareto L05" title="分享到腾讯！">腾讯</a></div>
                          	<script type="text/javascript">function postToWb(){var _t = encodeURI('${fn:escapeXml(happyText)}');var _url = encodeURIComponent('${shareLinkPath}');var _appkey = encodeURI("67523a5364aa43bdb6e8d18f93ac5524");var _pic = encodeURI($('.pimage img').attr('src'));var _site = '${hostName}';var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );}</script>
                          	</div>
                          </div>
		                   <p class="txt-rd"><c-rt:if test="${op.coupon != 0}">（此商品抵扣￥ ${pu:rmb(op.coupon)}元礼券）</c-rt:if></p>
		                  <c-rt:forEach items="${op.applyCampaigns}" var="ac" varStatus="status2">
	          	
	          	<p>
	          	<c-rt:if test="${ac.active}">
	          		<span class="type-4">优惠</span>
	          	</c-rt:if>
	          	<c-rt:if test="${!ac.active}">
	          		<span class="type-6">优惠</span>（不符合）
	          	</c-rt:if>
	         
	          	
	          	${pu:reqSet('pc', pu:get('com.yaodian100.ec.campaign.entity.Campaign', ac.campaignUuid)) }
	          	
	          	<a class="btn-promo" href="javascript:openCampaign_${opStatus.index }_${status2.index }()">${pc.campaignName } </a>
	          
				<script>
				<c-rt:set scope="request" var="campaignDetail">
            	${pu:replaceAll(pc.campaignDetail, '\'', '&#39;')}
            	</c-rt:set>
            	<c-rt:set scope="request" var="campaignDesc">
            	${pu:replaceAll(pc.campaignDesc, '\'', '&#39;')}
            	</c-rt:set>
					function openCampaign_${opStatus.index }_${status2.index }(){
						var dialogId='dialog';
						<%
						String campaignDetail=(String)request.getAttribute("campaignDetail");
						String campaignDesc=(String)request.getAttribute("campaignDesc");
						campaignDetail=campaignDetail.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
						campaignDesc=campaignDesc.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
						request.setAttribute("campaignDetail", campaignDetail);
						request.setAttribute("campaignDesc", campaignDesc);
						%>
						title='活动信息';
						campaignTitle='${pu:replaceAll(pc.campaignName, '\'', '&#39;')}';
						desc= '${campaignDesc}';
						detail='${campaignDetail}';
						startDate= '<fmt-rt:formatDate value="${pc.startDateTime}" pattern="yyyy/MM/dd HH:mm:ss"/>';
						endDate= '<fmt-rt:formatDate value="${pc.endDateTime}" pattern="yyyy/MM/dd HH:mm:ss"/>';
						url= '${pc.campaignUrl}';
						width= 300;
						height= 'auto';

						var content=compositeCampaign(campaignTitle, desc, detail, startDate, endDate, url);
						openDialog(title, content,width,height);
						$( '#'+dialogId).dialog('option', 'position', 'top' );
					}
				</script>

	          	</p>
	          	</c-rt:forEach></p>
		                  </td>
		                  <td width="50"><span class="type-0">主商品</span></td>
		                  <td width="105">&nbsp;</td>
		                 <td width="70">￥ ${pu:rmb(op.unitPrice)}</td>
		                  <td width="40">1</td>
		                </tr>
		                <c-rt:forEach items="${op.orderProductDetail}" var="opd">
		                	<c-rt:if test="${opd.detailTp == '6' and opd.prodId ne op.prodId}">
			                	<tr>
				                  <td class="txt-gy"><p>${opd.prodName}
				                  </p></td>
				                  <td><span class="type-4">活动</span></td>
				                  <td width="105" class="txt-gy">${opd.prodSpecName}</td>
				                  <td width="70">&nbsp;</td>
				                  <td class="txt-gy">${opd.qty}</td>
			                	</tr>
		                	</c-rt:if>
	                	</c-rt:forEach>
	                </table>
		            </td>
	            	<td>￥ ${pu:rmb(op.totalPrice)}</td>
	            	<td>
			          <c-rt:choose>
						<%--不是 活動商品--%>
						<c-rt:when test="${!order.campaign}">
							<c-rt:if test="${!empty op.logisticFinalDt && order.orderSt >= '35'}">
							<%--個別商品的退換貨期限 --%>													
							<%--<fmt:formatDate var="receiveAfter7" value="${pu:addDays(pu:toDate(product.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),7)}" pattern="yyyyMMddHHmm" />		--%>
							<fmt:formatDate var="returnProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[0])}" pattern="yyyyMMddHHmm" />
								<c-rt:choose>
							<%--有service order 成立 --%>
									<c-rt:when test="${!empty serviceOrderReturn }">
									<c-rt:set var="returnOnce" value="N"/>
										<c-rt:forEach items="${serviceOrderReturn}" var="serviceOrderReturn" varStatus="sori">																					
											<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProduct" varStatus="sopi">
												<c-rt:choose>
													<c-rt:when test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderReturn.serviceId == serviceOrderProduct.serviceId && returnOnce == 'N' }"><%--有SERVICE ORDER成立 並且是這個商品 --%>																		
														
															<a href="${frontendContextPath}/member/serviceOrder/returnProduct.do?serviceId=${serviceOrderReturn.serviceId}" class="od-do-note">								
																<c-rt:choose>
																	<c-rt:when test="${(serviceOrderReturn.returnBonus+serviceOrderReturn.returnCash+serviceOrderReturn.returnMyWallet+serviceOrderReturn.returnInstallmentFee+serviceOrderReturn.returnGiftcardBalance)>=500 && serviceOrderReturn.orderSt=='00'}">
																		<span>请致电客服</span>
																	</c-rt:when>
																	<c-rt:otherwise>
																	<c-rt:if test="${serviceOrderReturn.orderSt!=90}">
																		<span>${returnStatus.options[serviceOrderReturn.orderSt].name}</span>
																	</c-rt:if>
																	</c-rt:otherwise>
																</c-rt:choose>
															</a>
													
													<c-rt:set var="returnOnce" value="Y"/>
													</c-rt:when>
												</c-rt:choose>
											</c-rt:forEach>
										</c-rt:forEach>
										<c-rt:if test="${returnOnce == 'N'}">
											<c-rt:set var="isChanged" value="N"/>
											<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProductId" varStatus="sopi">
												<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
													<c-rt:set var="isChanged" value="Y"/>
												</c-rt:if>
											</c-rt:forEach>										
											<%--出货日期再期限内 --%>
											<c-rt:if test="${now < returnProductDeadline  && order.orderSt == '35' &&  isChanged == 'N' && op.prodStatus == 0}">
										         <a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要退货</span></a>
										     </c-rt:if>
										</c-rt:if>
									</c-rt:when>
									<%--沒有service order 成立 --%>
									<c-rt:otherwise>
										<c-rt:set var="isChanged" value="N"/>
										<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProductId" varStatus="sopi">
											<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
												<c-rt:set var="isChanged" value="Y"/>
											</c-rt:if>
										</c-rt:forEach>
										<%--出货日期再期限內 --%>	
											<c-rt:if test="${now < returnProductDeadline  && order.orderSt == '35' && isChanged == 'N' && op.prodStatus == 0}">								
										         <a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要退货</span></a>
										    </c-rt:if>
									</c-rt:otherwise>
								</c-rt:choose>
							</c-rt:if>
								
							<%--換貨:出货日期后15天内,并未申请退换货,若已有申请换货,改呈现换货状态/維修:在未申请退/换货,订单状态为交易完成 --%>
								<%--已有出貨日期 --%>
							<c-rt:if test="${!empty op.logisticFinalDt  && order.orderSt >= '35'}">
											<%--個別商品的退換貨期限 --%>
										<fmt:formatDate var="changeProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[1])}" pattern="yyyyMMddHHmm" />	
											<%--<fmt:formatDate var="receiveAfter15" value="${pu:addDays(pu:toDate(product.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),15)}" pattern="yyyyMMddHHmm" />--%>		
										<c-rt:choose>
											<%--有service order 成立 --%>
											<c-rt:when test="${!empty serviceOrderChange }">
												<c-rt:set var="changeOnce" value="N"/>
												<%--檢查是否相符的商品 --%>
												<c-rt:forEach items="${serviceOrderChange}" var="serviceOrderChange" varStatus="soci">												
													<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProduct" varStatus="sopi">	
														<c-rt:choose>
																<%--有SERVICE ORDER成立 並且是這個商品，呈現單據狀態 --%>
															<c-rt:when test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderChange.serviceId == serviceOrderProduct.serviceId && changeOnce=='N' && empty serviceOrderChange.newServiceId}">
																	<a href="${frontendContextPath}/member/serviceOrder/changeProduct.do?serviceId=${serviceOrderChange.serviceId}" class="od-do-note"><span>
																	  <c-rt:choose>
															          <c-rt:when test="${serviceOrderChange.orderSt=='90'&&order.receiverTp=='30'}">换货已领取</c-rt:when>
															          <c-rt:when test="${serviceOrderChange.orderSt=='20'}">${changeStatus.options[serviceOrderChange.orderSt].name}<br>(查进度)</c-rt:when>									         
															          <c-rt:otherwise>${changeStatus.options[serviceOrderChange.orderSt].name}</c-rt:otherwise> 
															          </c-rt:choose>
																	</span></a>											
															<c-rt:set var="changeOnce" value="Y"/>
															</c-rt:when>													
														</c-rt:choose>
													</c-rt:forEach>										
												</c-rt:forEach>
												<c-rt:if test="${changeOnce=='N'}">
													<c-rt:set var="isReturned" value="N"/>
													<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProductId" varStatus="sopi">
														<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
															<c-rt:set var="isReturned" value="Y"/>
														</c-rt:if>
													</c-rt:forEach>
														<%--出货日期再換貨期限内 --%>	
														<c-rt:if test="${now < changeProductDeadline  && order.orderSt == '35' && isReturned == 'N' && op.prodStatus == 0}">	
															<c-rt:if test="${op.prodTp=='5'}">
																<%--满额购换货须知 --%>						
											          			<a href="javascript:confirmChangeProductDialog('${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderProdId=${op.orderProdId}')" class="od-do-note"><span>我要换货</span></a>
											          		</c-rt:if>
															<c-rt:if test="${op.prodTp!='5'}">						
											          			<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要换货</span></a>
											          		</c-rt:if>
											          	</c-rt:if>
												</c-rt:if>
											</c-rt:when>
											<%--沒有退貨的service order 成立 --%>
											<c-rt:otherwise>
												<c-rt:set var="isReturned" value="N"/>
												<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProductId" varStatus="sopi">
													<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
														<c-rt:set var="isReturned" value="Y"/>
													</c-rt:if>
												</c-rt:forEach>
												<%--出货日期后15天内 --%>					
												<c-rt:if test="${now <= changeProductDeadline  && order.orderSt == '35' && isReturned == 'N' && op.prodStatus == 0}">	
													<c-rt:if test="${op.prodTp=='5'}">
														<%--满额购换货须知 --%>									
									         			<a href="javascript:confirmChangeProductDialog('${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}&orderProdId=${op.orderProdId}')" class="od-do-note"><span>我要换货</span></a>
									          		</c-rt:if>
										      		<c-rt:if test="${op.prodTp!='5'}">
														<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}&orderProdId=${op.orderProdId}" class="od-do-note"><span>我要换货</span></a>
													</c-rt:if>							          		
								          		</c-rt:if>
								          		<%--出货日期后15天後，只有維修--%>	
								          		<c-rt:if test="${empty serviceOrderRefund && now > changeProductDeadline  && order.orderSt >= '35'}">
									      			<a href="javascript:alertMaintain();" class="od-do-note"><span>维修查询</span></a>
									    		</c-rt:if>
											</c-rt:otherwise>
										</c-rt:choose>
							</c-rt:if>
								    
							<%--退款:有退货申请/取消申请,依据退货申请/取消申请退款状态来呈现 --%>     
							<c-rt:if test="${order.orderSt!='83'}">
								 <c-rt:choose>
										<c-rt:when test="${ serviceOrderRefund[0].srcType==4}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund[0].returnSt].name}</span></a>
										</c-rt:when>
										<c-rt:when test="${serviceOrderRefund[0].srcType==3 }">
											<c-rt:if test="${(order.orderSt == '80'||order.orderSt == '81'||order.orderSt == '82') && order.paymentSt==10 && (order.returnMyWallet == 0 || order.returnBonus==0 ) && serviceOrderRefund[0].orderSt!=90 && serviceOrderRefund[0].returnSt!=30}">
												<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>退款处理中</span></a>
											</c-rt:if>
											<c-rt:if test="${(order.orderSt == '80'||order.orderSt == '81'||order.orderSt == '82') && order.paymentSt==10 && (order.returnMyWallet > 0 || order.returnBonus>0 ) && serviceOrderRefund[0].orderSt==90 && serviceOrderRefund[0].returnSt==30}">
												<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>退款完成</span></a>
											</c-rt:if>
										</c-rt:when>
										<c-rt:otherwise>
												<%--有service order 成立 --%>
												<c-rt:if test="${!empty serviceOrderRefund }">
													<c-rt:set var="refundOnce" value="N"/>
													<%--檢查是否相符的商品 --%>
													<c-rt:forEach items="${serviceOrderRefund}" var="serviceOrderRefund" varStatus="soci">	
													<c-rt:set var="paramsSop" value="${null }"/>
													${pu:reqSet('sopHql', 'from ServiceOrderProduct where serviceId=?')}
													${pu:listAdd('paramsSop', pu:toString(serviceOrderRefund.serviceId))}
													${pu:reqSet('serviceOrderProducts', pu:queryByHql(sopHql, pu:arrayGet('paramsSop'), null))}										
														<c-rt:forEach items="${serviceOrderProducts}" var="serviceOrderProduct" varStatus="sopi">	
														<%--有SERVICE ORDER成立 並且是這個商品，呈現單據狀態 --%>
															<c-rt:if test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderRefund.serviceId == serviceOrderProduct.serviceId && serviceOrderRefund.orderSt==90}">
																<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderProductId=${op.orderProdId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
																<c-rt:set var="refundOnce" value="Y"/>
															</c-rt:if>
														</c-rt:forEach>											
													</c-rt:forEach>
												</c-rt:if>
								    	</c-rt:otherwise>
									</c-rt:choose>   
							</c-rt:if>	
					</c-rt:when>
					
					<%--是 活動商品--%>
					<c-rt:otherwise>
						<c-rt:if test="${!empty order.orderProduct[0].logisticFinalDt  && order.orderSt == '35'}">
							<%--個別商品的退換貨期限 --%>
							<%--<fmt:formatDate var="receiveAfter7" value="${pu:addDays(pu:toDate(order.orderProduct[0].logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),7)}" pattern="yyyyMMddHHmm" />--%>
							<fmt:formatDate var="returnProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[0])}" pattern="yyyyMMddHHmm" />
							<%--出货日期后7天内 --%>								
							<c-rt:if test="${now < returnProductDeadline && order.orderProduct[0].prodStatus == 0}">
								<a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderId=${order.orderId}" class="od-do-note"><span>我要退货</span></a>
							</c-rt:if>
						</c-rt:if>	
						
						<%--有service order 成立 退款--%>
						<c-rt:if test="${!empty serviceOrderRefund }">
							<%--檢查是否相符的订单 --%>
							<c-rt:forEach items="${serviceOrderRefund}" var="serviceOrderRefund" varStatus="soci">	
								<%--有SERVICE ORDER成立 並且是這個订单，呈現單據狀態 --%>
								<c-rt:if test="${serviceOrderRefund.orderId == order.orderId}">
										<c-rt:if test="${serviceOrderRefund.srcType==3}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId＝${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
										</c-rt:if>
										<c-rt:if test="${serviceOrderRefund.srcType==1 && serviceOrderRefund.orderSt==90}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId＝${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
										</c-rt:if>
								</c-rt:if>						
							</c-rt:forEach>
						</c-rt:if>	
						
						
						<c-rt:if test="${!empty order.orderProduct[0].logisticFinalDt  && order.orderSt == '35'}">
								<%--個別商品的退換貨期限 --%>
								<fmt:formatDate var="changeProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[1])}" pattern="yyyyMMddHHmm" />
								<%--<fmt:formatDate var="receiveAfter15" value="${pu:addDays(pu:toDate(order.orderProduct[0].logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),15)}" pattern="yyyyMMddHHmm" />--%>
								<%--出货日期后15天内，可換 --%>								
								<c-rt:if test="${now < changeProductDeadline  && order.orderSt == '35' && order.orderProduct[0].prodStatus == 0}">
									<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}" class="od-do-note"><span>我要换货</span></a>
				        		</c-rt:if>
							    <%--出货日期后15天後，只有維修--%>	
				          		<c-rt:if test="${empty serviceOrderRefund && now > changeProductDeadline && order.orderSt == '35' }">
				         			<a href="javascript:alertMaintain();" class="od-do-note"><span>维修查询</span></a>
								</c-rt:if>
						</c-rt:if>
												
					</c-rt:otherwise>
				</c-rt:choose>
	            	</td>
	            	<td class="east">
						<div class="od-pd">
							<a href="${frontendContextPath}/member/cs/page.do?page=request&orderId=${order.orderId}&productId=${op.prodId}" class="od-do-note"><span>询问</span></a> 
							<a href="${frontendContextPath}/member/cs/qaa.do?orderId=${order.orderId}" class="od-do-note"><span>记录</span></a>
						</div>
					 </td> 
	          	</tr>
          	</c-rt:if>
			<c-rt:if test="${op.prodTp=='5'}">
	          	<tr>
	            	<td colspan="5" align="left" class="table-in" style="text-align:left">
	            		<table width="100%" border="0">
	                	<tr>
		                  <td width="420"><p>${op.prodName}
		                  <a class="icon-change" target="_blank" href="/help/8_policy.html"><img alt="${changeRule.options[op.returnRule].name}" title="${changeRule.options[op.returnRule].name}" src="/images/returnRule/${op.returnRule }.gif"></a></p>
		                   <p class="txt-rd"><c-rt:if test="${op.coupon != 0}">（此商品抵扣￥ ${pu:rmb(op.coupon)}元礼券）</c-rt:if></p></td>
		                  <td width="50"><span class="type-5">满额购</span></td>
		                  <td width="105">&nbsp;</td>
		                  <td width="70">￥ ${pu:rmb(op.amount)}</td>
		                  <td width="40">1</td>
		                </tr>
		                <c-rt:forEach items="${op.orderProductDetail}" var="opd">
		                	<c-rt:if test="${opd.detailTp == '6'}">
			                	<tr>
				                  <td width="420" class="txt-gy" ><p>${opd.prodName}
				                  <a class="icon-change" target="_blank" href="/help/8_policy.html"><img alt="${changeRule.options[opd.returnRule].name}" title="${changeRule.options[opd.returnRule].name}" src="/images/returnRule/${opd.returnRule }.gif"></a>
				                  </p></td>
				                  <td width="50"><span class="type-4">活动</span></td>
				                  <td width="105" class="txt-gy">${opd.prodSpecName}</td>
				                  <td width="70">&nbsp;</td>
				                  <td width="40" class="txt-gy">1</td>
			                	</tr>
		                	</c-rt:if>
	                	</c-rt:forEach>
	                </table>
		            </td>
	            	<td>￥ ${pu:rmb(op.totalPrice)}</td>
	            	<td>
			          <c-rt:choose>
						<%--不是 活動商品--%>
						<c-rt:when test="${!order.campaign}">
							<c-rt:if test="${!empty op.logisticFinalDt && order.orderSt >= '35'}">
							<%--個別商品的退換貨期限 --%>													
							<%--<fmt:formatDate var="receiveAfter7" value="${pu:addDays(pu:toDate(product.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),7)}" pattern="yyyyMMddHHmm" />		--%>
							<fmt:formatDate var="returnProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[0])}" pattern="yyyyMMddHHmm" />
								<c-rt:choose>
							<%--有service order 成立 --%>
									<c-rt:when test="${!empty serviceOrderReturn }">
									<c-rt:set var="returnOnce" value="N"/>
										<c-rt:forEach items="${serviceOrderReturn}" var="serviceOrderReturn" varStatus="sori">																					
											<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProduct" varStatus="sopi">
												<c-rt:choose>
													<c-rt:when test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderReturn.serviceId == serviceOrderProduct.serviceId && returnOnce == 'N' }"><%--有SERVICE ORDER成立 並且是這個商品 --%>																		
														
															<a href="${frontendContextPath}/member/serviceOrder/returnProduct.do?serviceId=${serviceOrderReturn.serviceId}" class="od-do-note">								
																<c-rt:choose>
																	<c-rt:when test="${(serviceOrderReturn.returnBonus+serviceOrderReturn.returnCash+serviceOrderReturn.returnMyWallet+serviceOrderReturn.returnInstallmentFee+serviceOrderReturn.returnGiftcardBalance)>=500 && serviceOrderReturn.orderSt=='00'}">
																		<span>请致电客服</span>
																	</c-rt:when>
																	<c-rt:otherwise>
																	<c-rt:if test="${serviceOrderReturn.orderSt!=90}">
																		<span>${returnStatus.options[serviceOrderReturn.orderSt].name}</span>
																	</c-rt:if>
																	</c-rt:otherwise>
																</c-rt:choose>
															</a>
													
													<c-rt:set var="returnOnce" value="Y"/>
													</c-rt:when>
												</c-rt:choose>
											</c-rt:forEach>
										</c-rt:forEach>
										<c-rt:if test="${returnOnce == 'N'}">
											<c-rt:set var="isChanged" value="N"/>
											<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProductId" varStatus="sopi">
												<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
													<c-rt:set var="isChanged" value="Y"/>
												</c-rt:if>
											</c-rt:forEach>										
											<%--出货日期再期限内 --%>
											<c-rt:if test="${now < returnProductDeadline  && order.orderSt == '35' &&  isChanged == 'N' && op.prodStatus == 0}">
										         <a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要退货</span></a>
										     </c-rt:if>
										</c-rt:if>
									</c-rt:when>
									<%--沒有service order 成立 --%>
									<c-rt:otherwise>
										<c-rt:set var="isChanged" value="N"/>
										<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProductId" varStatus="sopi">
											<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
												<c-rt:set var="isChanged" value="Y"/>
											</c-rt:if>
										</c-rt:forEach>
										<%--出货日期再期限內 --%>	
											<c-rt:if test="${now < returnProductDeadline  && order.orderSt == '35' && isChanged == 'N' && op.prodStatus == 0}">								
										         <a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要退货</span></a>
										    </c-rt:if>
									</c-rt:otherwise>
								</c-rt:choose>
							</c-rt:if>
								
							<%--換貨:出货日期后15天内,并未申请退换货,若已有申请换货,改呈现换货状态/維修:在未申请退/换货,订单状态为交易完成 --%>
								<%--已有出貨日期 --%>
							<c-rt:if test="${!empty op.logisticFinalDt  && order.orderSt >= '35'}">
											<%--個別商品的退換貨期限 --%>
										<fmt:formatDate var="changeProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[1])}" pattern="yyyyMMddHHmm" />	
											<%--<fmt:formatDate var="receiveAfter15" value="${pu:addDays(pu:toDate(product.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),15)}" pattern="yyyyMMddHHmm" />--%>		
										<c-rt:choose>
											<%--有service order 成立 --%>
											<c-rt:when test="${!empty serviceOrderChange }">
												<c-rt:set var="changeOnce" value="N"/>
												<%--檢查是否相符的商品 --%>
												<c-rt:forEach items="${serviceOrderChange}" var="serviceOrderChange" varStatus="soci">												
													<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProduct" varStatus="sopi">	
														<c-rt:choose>
																<%--有SERVICE ORDER成立 並且是這個商品，呈現單據狀態 --%>
															<c-rt:when test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderChange.serviceId == serviceOrderProduct.serviceId && changeOnce=='N' && empty serviceOrderChange.newServiceId}">
																	<a href="${frontendContextPath}/member/serviceOrder/changeProduct.do?serviceId=${serviceOrderChange.serviceId}" class="od-do-note"><span>
																	  <c-rt:choose>
															          <c-rt:when test="${serviceOrderChange.orderSt=='90'&&order.receiverTp=='30'}">换货已领取</c-rt:when>
															          <c-rt:when test="${serviceOrderChange.orderSt=='20'}">${changeStatus.options[serviceOrderChange.orderSt].name}<br>(查进度)</c-rt:when>									         
															          <c-rt:otherwise>${changeStatus.options[serviceOrderChange.orderSt].name}</c-rt:otherwise> 
															          </c-rt:choose>
																	</span></a>											
															<c-rt:set var="changeOnce" value="Y"/>
															</c-rt:when>													
														</c-rt:choose>
													</c-rt:forEach>										
												</c-rt:forEach>
												<c-rt:if test="${changeOnce=='N'}">
													<c-rt:set var="isReturned" value="N"/>
													<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProductId" varStatus="sopi">
														<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
															<c-rt:set var="isReturned" value="Y"/>
														</c-rt:if>
													</c-rt:forEach>
														<%--出货日期再換貨期限内 --%>	
														<c-rt:if test="${now < changeProductDeadline  && order.orderSt == '35' && isReturned == 'N' && op.prodStatus == 0}">	
															<c-rt:if test="${op.prodTp=='5'}">
																<%--满额购换货须知 --%>						
											          			<a href="javascript:confirmChangeProductDialog('${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderProdId=${op.orderProdId}')" class="od-do-note"><span>我要换货</span></a>
											          		</c-rt:if>
															<c-rt:if test="${op.prodTp!='5'}">						
											          			<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要换货</span></a>
											          		</c-rt:if>
											          	</c-rt:if>
												</c-rt:if>
											</c-rt:when>
											<%--沒有退貨的service order 成立 --%>
											<c-rt:otherwise>
												<c-rt:set var="isReturned" value="N"/>
												<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProductId" varStatus="sopi">
													<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
														<c-rt:set var="isReturned" value="Y"/>
													</c-rt:if>
												</c-rt:forEach>
												<%--出货日期后15天内 --%>					
												<c-rt:if test="${now <= changeProductDeadline  && order.orderSt == '35' && isReturned == 'N' && op.prodStatus == 0}">	
													<c-rt:if test="${op.prodTp=='5'}">
														<%--满额购换货须知 --%>									
									         			<a href="javascript:confirmChangeProductDialog('${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}&orderProdId=${op.orderProdId}')" class="od-do-note"><span>我要换货</span></a>
									          		</c-rt:if>
										      		<c-rt:if test="${op.prodTp!='5'}">
														<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}&orderProdId=${op.orderProdId}" class="od-do-note"><span>我要换货</span></a>
													</c-rt:if>							          		
								          		</c-rt:if>
								          		<%--出货日期后15天後，只有維修--%>	
								          		<c-rt:if test="${empty serviceOrderRefund && now > changeProductDeadline  && order.orderSt >= '35'}">
									      			<a href="javascript:alertMaintain();" class="od-do-note"><span>维修查询</span></a>
									    		</c-rt:if>
											</c-rt:otherwise>
										</c-rt:choose>
							</c-rt:if>
								    
							<%--退款:有退货申请/取消申请,依据退货申请/取消申请退款状态来呈现 --%>     
							<c-rt:if test="${order.orderSt!='83'}">
								 <c-rt:choose>
										<c-rt:when test="${ serviceOrderRefund[0].srcType==4}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund[0].returnSt].name}</span></a>
										</c-rt:when>
										<c-rt:when test="${serviceOrderRefund[0].srcType==3 }">
											<c-rt:if test="${(order.orderSt == '80'||order.orderSt == '81'||order.orderSt == '82') && order.paymentSt==10 && (order.returnMyWallet == 0 || order.returnBonus==0 ) && serviceOrderRefund[0].orderSt!=90 && serviceOrderRefund[0].returnSt!=30}">
												<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>退款处理中</span></a>
											</c-rt:if>
											<c-rt:if test="${(order.orderSt == '80'||order.orderSt == '81'||order.orderSt == '82') && order.paymentSt==10 && (order.returnMyWallet > 0 || order.returnBonus>0 ) && serviceOrderRefund[0].orderSt==90 && serviceOrderRefund[0].returnSt==30}">
												<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>退款完成</span></a>
											</c-rt:if>
										</c-rt:when>
										<c-rt:otherwise>
												<%--有service order 成立 --%>
												<c-rt:if test="${!empty serviceOrderRefund }">
													<c-rt:set var="refundOnce" value="N"/>
													<%--檢查是否相符的商品 --%>
													<c-rt:forEach items="${serviceOrderRefund}" var="serviceOrderRefund" varStatus="soci">	
													<c-rt:set var="paramsSop" value="${null }"/>
													${pu:reqSet('sopHql', 'from ServiceOrderProduct where serviceId=?')}
													${pu:listAdd('paramsSop', pu:toString(serviceOrderRefund.serviceId))}
													${pu:reqSet('serviceOrderProducts', pu:queryByHql(sopHql, pu:arrayGet('paramsSop'), null))}										
														<c-rt:forEach items="${serviceOrderProducts}" var="serviceOrderProduct" varStatus="sopi">	
														<%--有SERVICE ORDER成立 並且是這個商品，呈現單據狀態 --%>
															<c-rt:if test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderRefund.serviceId == serviceOrderProduct.serviceId && serviceOrderRefund.orderSt==90}">
																<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderProductId=${op.orderProdId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
																<c-rt:set var="refundOnce" value="Y"/>
															</c-rt:if>
														</c-rt:forEach>											
													</c-rt:forEach>
												</c-rt:if>
								    	</c-rt:otherwise>
									</c-rt:choose>   
							</c-rt:if>	
					</c-rt:when>
					
					<%--是 活動商品--%>
					<c-rt:otherwise>
						<c-rt:if test="${!empty order.orderProduct[0].logisticFinalDt  && order.orderSt == '35'}">
							<%--個別商品的退換貨期限 --%>
							<%--<fmt:formatDate var="receiveAfter7" value="${pu:addDays(pu:toDate(order.orderProduct[0].logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),7)}" pattern="yyyyMMddHHmm" />--%>
							<fmt:formatDate var="returnProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[0])}" pattern="yyyyMMddHHmm" />
							<%--出货日期后7天内 --%>								
							<c-rt:if test="${now < returnProductDeadline && order.orderProduct[0].prodStatus == 0}">
								<a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderId=${order.orderId}" class="od-do-note"><span>我要退货</span></a>
							</c-rt:if>
						</c-rt:if>	
						
						<%--有service order 成立 退款--%>
						<c-rt:if test="${!empty serviceOrderRefund }">
							<%--檢查是否相符的订单 --%>
							<c-rt:forEach items="${serviceOrderRefund}" var="serviceOrderRefund" varStatus="soci">	
								<%--有SERVICE ORDER成立 並且是這個订单，呈現單據狀態 --%>
								<c-rt:if test="${serviceOrderRefund.orderId == order.orderId}">
										<c-rt:if test="${serviceOrderRefund.srcType==3}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId＝${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
										</c-rt:if>
										<c-rt:if test="${serviceOrderRefund.srcType==1 && serviceOrderRefund.orderSt==90}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId＝${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
										</c-rt:if>
								</c-rt:if>						
							</c-rt:forEach>
						</c-rt:if>	
						
						
						<c-rt:if test="${!empty order.orderProduct[0].logisticFinalDt  && order.orderSt == '35'}">
								<%--個別商品的退換貨期限 --%>
								<fmt:formatDate var="changeProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[1])}" pattern="yyyyMMddHHmm" />
								<%--<fmt:formatDate var="receiveAfter15" value="${pu:addDays(pu:toDate(order.orderProduct[0].logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),15)}" pattern="yyyyMMddHHmm" />--%>
								<%--出货日期后15天内，可換 --%>								
								<c-rt:if test="${now < changeProductDeadline  && order.orderSt == '35' && order.orderProduct[0].prodStatus == 0}">
									<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}" class="od-do-note"><span>我要换货</span></a>
				        		</c-rt:if>
							    <%--出货日期后15天後，只有維修--%>	
				          		<c-rt:if test="${empty serviceOrderRefund && now > changeProductDeadline && order.orderSt == '35' }">
				         			<a href="javascript:alertMaintain();" class="od-do-note"><span>维修查询</span></a>
								</c-rt:if>
						</c-rt:if>
												
					</c-rt:otherwise>
				</c-rt:choose>
	            	</td>
	            	<td class="east">
						<div class="od-pd">
							<a href="${frontendContextPath}/member/cs/page.do?page=request&orderId=${order.orderId}&productId=${op.prodId}" class="od-do-note"><span>询问</span></a> 
							<a href="${frontendContextPath}/member/cs/qaa.do?orderId=${order.orderId}" class="od-do-note"><span>记录</span></a>
						</div>
					 </td> 
	          	</tr>
          	</c-rt:if>          	
          	<c-rt:if test="${op.prodTp=='0' or op.prodTp=='1' or op.prodTp=='2' or op.prodTp=='7'}">
	          	<tr>
		            <td colspan="5" align="left" class="table-in" style="text-align:left">
		            	<c-rt:forEach items="${op.orderProductDetail}" var="opd" varStatus="status1">
				            <table border="0" width="100%">
				            	<c-rt:if test="${opd.detailTp == '0' or opd.detailTp == '1' or opd.detailTp == '7'}">
				                <tr>
				                  <c-rt:set var="shareLinkPath" value='${hostName}${frontendContextPath}/product/product.do?productId=${opd.prodId}'/>
				                  <td width="420"><p><a href="${shareLinkPath}" class="od-name" target="_blank">${opd.prodName}</a>
				                  <a class="icon-change" target="_blank" href="/help/8_policy.html"><img alt="${changeRule.options[opd.returnRule].name}" title="${changeRule.options[opd.returnRule].name}" src="/images/returnRule/${opd.returnRule }.gif"></a></p>
				                  <c-rt:set var="happyText" value='《${opd.prodName}》商品优质，价格便宜，赶快去看看！'/>
				                  <c-rt:if test="${empty order.tuangouId}"><%--團購不要分享 --%>
				                  <div class="share-to" onmouseover="$('#share-list01_${op.prodId}_${pcounter}').show();" onmouseout="$('#share-list01_${op.prodId}_${pcounter}').hide();">分享到
				                  </c-rt:if>
				                  <b></b>
                          			<div id="share-list01_${op.prodId}_${pcounter}" class="share-list" style="display:none">
                          			<div class="share-kaixi"><a href="javascript:traceVirtualPage('/product.do?productId=${opd.prodId}&hpp=kaixinmck_order');window.open('http://www.kaixin001.com/repaste/share.php?rtitle='+encodeURIComponent('我在 耀点100 网站买了这件促销商品很不错，推荐给大家！')+'&rurl='+encodeURIComponent('${shareLinkPath}')+'&rcontent=' + encodeURIComponent('${fn:escapeXml(happyText)}') ,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0;" class="shareto L01" style="cursor: pointer;cursor:hand;" title="分享到开心网！" >开心网</a></div>
                         			<div class="share-renren"><a href="javascript:traceVirtualPage('/product.do?productId=${opd.prodId}&hpp=renrenmck_order');void((function(s,d,e){var f='http://share.renren.com/share/buttonshare?link=',u='${shareLinkPath}&hpp=renren',l='',p=[e(u),'&title=',e(l)].join('');function a(){if(!window.open([f,p].join(''),'xnshare',['toolbar=0,status=0,resizable=1,width=626,height=436,left=',(s.width-626)/2,',top=',(s.height-436)/2].join('')))u.href=[f,p].join('');};if(/Firefox/.test(navigator.userAgent))setTimeout(a,0);else a();})(screen,document,encodeURIComponent));" class="shareto L02" style="cursor: pointer;cursor:hand;" title="分享到人人网！">人人网</a></div>
                          			<div class="share-qq"><a href="javascript:traceVirtualPage('/product.do?productId=${opd.prodId}&hpp=qqmck_order');postToWb();" class="shareto L05" title="分享到腾讯！">腾讯</a></div>
                          			<div class="share-weibo"><a href="javascript:traceVirtualPage('/product.do?productId=${opd.prodId}&hpp=sinamck_order');window.open('http://v.t.sina.com.cn/share/share.php?appkey=732367816&title='+encodeURIComponent('我在 耀点100 网站买了这件促销商品很不错，推荐给大家！${shareLinkPath}${fn:escapeXml(happyText)}') ,'_blank','scrollbars=no,width=600,height=450,left=75,top=20,status=no,resizable=yes'); void 0;" class="shareto L06" style="cursor: pointer;cursor:hand;" title="分享到新浪微博！" >新浪微博</a></div>
                          			<script type="text/javascript">function postToWb(){var _t = encodeURI('${fn:escapeXml(happyText)}');var _url = encodeURIComponent('${shareLinkPath}');var _appkey = encodeURI("67523a5364aa43bdb6e8d18f93ac5524");var _pic = encodeURI($('.pimage img').attr('src'));var _site = '${hostName}';var _u = 'http://v.t.qq.com/share/share.php?url='+_url+'&appkey='+_appkey+'&site='+_site+'&pic='+_pic+'&title='+_t;window.open( _u,'', 'width=700, height=680, top=0, left=0, toolbar=no, menubar=no, scrollbars=no, location=yes, resizable=no, status=no' );}</script>
                          			</div>
                          		  </div>
				                   <p class="txt-rd"><c-rt:if test="${op.coupon != 0}">（此商品抵扣￥ ${pu:rmb(op.coupon)}元礼券）</c-rt:if></p>
				                  
				                  <c-rt:if test="${opd.detailTp ne '2' && opd.detailTp ne '3'}">
				                  <c-rt:forEach items="${op.applyCampaigns}" var="ac" varStatus="status2">
	          	
	          	<p>
	          	<c-rt:if test="${ac.active}">
	          		<span class="type-4">优惠</span>
	          	</c-rt:if>
	          	<c-rt:if test="${!ac.active}">
	          		<span class="type-6">优惠</span>（不符合）
	          	</c-rt:if>

	          	${pu:reqSet('pc', pu:get('com.yaodian100.ec.campaign.entity.Campaign', ac.campaignUuid)) }
	          	
	          	<a class="btn-promo" href="javascript:openCampaign_${opStatus.index }_${status2.index }()">${pc.campaignName } </a>
	          
				<script>
				<c-rt:set scope="request" var="campaignDetail" >
            	${pu:replaceAll(pc.campaignDetail, '\'', '&#39;')}
            	</c-rt:set>
            	<c-rt:set scope="request" var="campaignDesc">
            	${pu:replaceAll(pc.campaignDesc, '\'', '&#39;')}
            	</c-rt:set>
					function openCampaign_${opStatus.index }_${status2.index }(){
						var dialogId='dialog';
						<%
						String campaignDetail=(String)request.getAttribute("campaignDetail");
						String campaignDesc=(String)request.getAttribute("campaignDesc");
						campaignDetail=campaignDetail.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
						campaignDesc=campaignDesc.replaceAll("\r\n", "").replaceAll("\r", "").replaceAll("\n", "");
						request.setAttribute("campaignDetail", campaignDetail);
						request.setAttribute("campaignDesc", campaignDesc);
						%>
						title='活动信息';
						campaignTitle='${pu:replaceAll(pc.campaignName, '\'', '&#39;')}';
						desc= '${campaignDesc}';
						detail='${campaignDetail}';
						startDate= '<fmt-rt:formatDate value="${pc.startDateTime}" pattern="yyyy/MM/dd HH:mm:ss"/>';
						endDate= '<fmt-rt:formatDate value="${pc.endDateTime}" pattern="yyyy/MM/dd HH:mm:ss"/>';
						url= '${pc.campaignUrl}';
						width= 300;
						height= 'auto';

						var content=compositeCampaign(campaignTitle, desc, detail, startDate, endDate, url);
						openDialog(title, content,width,height);
						$( '#'+dialogId).dialog('option', 'position', 'top' );
					}
				</script>

	          	</p>
	          	</c-rt:forEach>
				</c-rt:if>                  
				              </td>
				                  <td width="50">
				                  	<c-rt:if test="${op.prodTp == '0'}">
				                  		<span class="type-0">主商品</span>
				                  	</c-rt:if>
				                  	<c-rt:if test="${op.prodTp == '1'}">
				                  		<span class="type-1">预购</span>
				                  	</c-rt:if>
				                  </td>
				                  <td width="105">${opd.prodSpecName}
				                  </td>
				                  <td width="70">￥ ${pu:rmb(opd.unitPrice)}</td>
				                  <td width="40">${opd.qty}</td>
				                </tr>
				               </c-rt:if>
				               <c-rt:if test="${opd.detailTp == '2'}">
					             	<tr>
				                  <td width="420" class="txt-gy" ><p>${opd.prodName}
				                  <a class="icon-change" target="_blank" href="/help/8_policy.html"><img alt="${changeRule.options[op.returnRule].name}" title="${changeRule.options[op.returnRule].name}" src="/images/returnRule/${op.returnRule }.gif"></a>
				                  </p></td>
				                  <td width="50"><span class="type-2">赠品</span></td>
				                  <td width="105" class="txt-gy">&nbsp;</td>
				                  <td width="70">&nbsp;</td>
				                  <td width="40" class="txt-gy">${opd.qty}</td>
				               	</tr>
				               </c-rt:if>
				               <c-rt:if test="${opd.detailTp == '3'}">
				               	<tr>
				                  <td width="420" class="txt-gy" ><p>${opd.prodName}
				                  <a class="icon-change" target="_blank" href="/help/8_policy.html"><img alt="${changeRule.options[op.returnRule].name}" title="${changeRule.options[op.returnRule].name}" src="/images/returnRule/${op.returnRule }.gif"></a>
				                  </p></td>
				                  <td width="50"><span class="type-3">加购</span></td>
				                  <td width="105" class="txt-gy">${opd.prodSpecName}</td>
				                  <td width="70">￥ ${pu:rmb(opd.unitPrice)}</td>
				                  <td width="40" class="txt-gy">${opd.qty}</td>
			                 	</tr>
				               </c-rt:if>
				            </table>
			            </c-rt:forEach>
			          </td>
			          <td>￥ ${pu:rmb(op.totalPrice)}</td>
			          <td>
			          <c-rt:choose>
						<%--不是 活動商品--%>
						<c-rt:when test="${!order.campaign}">
							<c-rt:if test="${!empty op.logisticFinalDt && order.orderSt >= '35'}">
							<%--個別商品的退換貨期限 --%>													
							<%--<fmt:formatDate var="receiveAfter7" value="${pu:addDays(pu:toDate(product.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),7)}" pattern="yyyyMMddHHmm" />		--%>
							<fmt:formatDate var="returnProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[0])}" pattern="yyyyMMddHHmm" />
								<c-rt:choose>
							<%--有service order 成立 --%>
									<c-rt:when test="${!empty serviceOrderReturn }">
									<c-rt:set var="returnOnce" value="N"/>
										<c-rt:forEach items="${serviceOrderReturn}" var="serviceOrderReturn" varStatus="sori">																					
											<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProduct" varStatus="sopi">
												<c-rt:choose>
													<c-rt:when test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderReturn.serviceId == serviceOrderProduct.serviceId && returnOnce == 'N' }"><%--有SERVICE ORDER成立 並且是這個商品 --%>																		
														
															<a href="${frontendContextPath}/member/serviceOrder/returnProduct.do?serviceId=${serviceOrderReturn.serviceId}" class="od-do-note">								
																<c-rt:choose>
																	<c-rt:when test="${(serviceOrderReturn.returnBonus+serviceOrderReturn.returnCash+serviceOrderReturn.returnMyWallet+serviceOrderReturn.returnInstallmentFee+serviceOrderReturn.returnGiftcardBalance)>=500 && serviceOrderReturn.orderSt=='00'}">
																		<span>请致电客服</span>
																	</c-rt:when>
																	<c-rt:otherwise>
																	<c-rt:if test="${serviceOrderReturn.orderSt!=90}">
																		<span>${returnStatus.options[serviceOrderReturn.orderSt].name}</span>
																	</c-rt:if>
																	</c-rt:otherwise>
																</c-rt:choose>
															</a>
													
													<c-rt:set var="returnOnce" value="Y"/>
													</c-rt:when>
												</c-rt:choose>
											</c-rt:forEach>
										</c-rt:forEach>
										<c-rt:if test="${returnOnce == 'N'}">
											<c-rt:set var="isChanged" value="N"/>
											<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProductId" varStatus="sopi">
												<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
													<c-rt:set var="isChanged" value="Y"/>
												</c-rt:if>
											</c-rt:forEach>										
											<%--出货日期再期限内 --%>
											<c-rt:if test="${now < returnProductDeadline  && order.orderSt == '35' &&  isChanged == 'N' && op.prodStatus == 0}">
										         <a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要退货</span></a>
										     </c-rt:if>
										</c-rt:if>
									</c-rt:when>
									<%--沒有service order 成立 --%>
									<c-rt:otherwise>
										<c-rt:set var="isChanged" value="N"/>
										<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProductId" varStatus="sopi">
											<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
												<c-rt:set var="isChanged" value="Y"/>
											</c-rt:if>
										</c-rt:forEach>
										<%--出货日期再期限內 --%>	
											<c-rt:if test="${now < returnProductDeadline  && order.orderSt == '35' && isChanged == 'N' && op.prodStatus == 0}">								
										         <a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要退货</span></a>
										    </c-rt:if>
									</c-rt:otherwise>
								</c-rt:choose>
							</c-rt:if>
								
							<%--換貨:出货日期后15天内,并未申请退换货,若已有申请换货,改呈现换货状态/維修:在未申请退/换货,订单状态为交易完成 --%>
								<%--已有出貨日期 --%>
							<c-rt:if test="${!empty op.logisticFinalDt  && order.orderSt >= '35'}">
											<%--個別商品的退換貨期限 --%>
										<fmt:formatDate var="changeProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[1])}" pattern="yyyyMMddHHmm" />	
											<%--<fmt:formatDate var="receiveAfter15" value="${pu:addDays(pu:toDate(product.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),15)}" pattern="yyyyMMddHHmm" />--%>		
										<c-rt:choose>
											<%--有service order 成立 --%>
											<c-rt:when test="${!empty serviceOrderChange }">
												<c-rt:set var="changeOnce" value="N"/>
												<%--檢查是否相符的商品 --%>
												<c-rt:forEach items="${serviceOrderChange}" var="serviceOrderChange" varStatus="soci">												
													<c-rt:forEach items="${serviceOrderChangeP}" var="serviceOrderProduct" varStatus="sopi">	
														<c-rt:choose>
																<%--有SERVICE ORDER成立 並且是這個商品，呈現單據狀態 --%>
															<c-rt:when test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderChange.serviceId == serviceOrderProduct.serviceId && changeOnce=='N' && empty serviceOrderChange.newServiceId}">
																	<a href="${frontendContextPath}/member/serviceOrder/changeProduct.do?serviceId=${serviceOrderChange.serviceId}" class="od-do-note"><span>
																	  <c-rt:choose>
															          <c-rt:when test="${serviceOrderChange.orderSt=='90'&&order.receiverTp=='30'}">换货已领取</c-rt:when>
															          <c-rt:when test="${serviceOrderChange.orderSt=='20'}">${changeStatus.options[serviceOrderChange.orderSt].name}<br>(查进度)</c-rt:when>									         
															          <c-rt:otherwise>${changeStatus.options[serviceOrderChange.orderSt].name}</c-rt:otherwise> 
															          </c-rt:choose>
																	</span></a>											
															<c-rt:set var="changeOnce" value="Y"/>
															</c-rt:when>													
														</c-rt:choose>
													</c-rt:forEach>										
												</c-rt:forEach>
												<c-rt:if test="${changeOnce=='N'}">
													<c-rt:set var="isReturned" value="N"/>
													<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProductId" varStatus="sopi">
														<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
															<c-rt:set var="isReturned" value="Y"/>
														</c-rt:if>
													</c-rt:forEach>
														<%--出货日期再換貨期限内 --%>	
														<c-rt:if test="${now < changeProductDeadline  && order.orderSt == '35' && isReturned == 'N' && op.prodStatus == 0}">	
															<c-rt:if test="${op.prodTp=='5'}">
																<%--满额购换货须知 --%>						
											          			<a href="javascript:confirmChangeProductDialog('${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderProdId=${op.orderProdId}')" class="od-do-note"><span>我要换货</span></a>
											          		</c-rt:if>
															<c-rt:if test="${op.prodTp!='5'}">						
											          			<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderProdId=${op.orderProdId}" class="od-do-note"><span>我要换货</span></a>
											          		</c-rt:if>
											          	</c-rt:if>
												</c-rt:if>
											</c-rt:when>
											<%--沒有退貨的service order 成立 --%>
											<c-rt:otherwise>
												<c-rt:set var="isReturned" value="N"/>
												<c-rt:forEach items="${serviceOrderReturnP}" var="serviceOrderProductId" varStatus="sopi">
													<c-rt:if test="${op.orderProdId==serviceOrderProductId.orderProdId}">
														<c-rt:set var="isReturned" value="Y"/>
													</c-rt:if>
												</c-rt:forEach>
												<%--出货日期后15天内 --%>					
												<c-rt:if test="${now <= changeProductDeadline  && order.orderSt == '35' && isReturned == 'N' && op.prodStatus == 0}">	
													<c-rt:if test="${op.prodTp=='5'}">
														<%--满额购换货须知 --%>									
									         			<a href="javascript:confirmChangeProductDialog('${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}&orderProdId=${op.orderProdId}')" class="od-do-note"><span>我要换货</span></a>
									          		</c-rt:if>
										      		<c-rt:if test="${op.prodTp!='5'}">
														<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}&orderProdId=${op.orderProdId}" class="od-do-note"><span>我要换货</span></a>
													</c-rt:if>							          		
								          		</c-rt:if>
								          		<%--出货日期后15天後，只有維修--%>	
								          		<c-rt:if test="${empty serviceOrderRefund && now > changeProductDeadline  && order.orderSt >= '35'}">
									      			<a href="javascript:alertMaintain();" class="od-do-note"><span>维修查询</span></a>
									    		</c-rt:if>
											</c-rt:otherwise>
										</c-rt:choose>
							</c-rt:if>
								    
							<%--退款:有退货申请/取消申请,依据退货申请/取消申请退款状态来呈现 --%>     
							<c-rt:if test="${order.orderSt!='83'}">
								 <c-rt:choose>
										<c-rt:when test="${ serviceOrderRefund[0].srcType==4}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund[0].returnSt].name}</span></a>
										</c-rt:when>
										<c-rt:when test="${serviceOrderRefund[0].srcType==3 }">
											<c-rt:if test="${(order.orderSt == '80'||order.orderSt == '81'||order.orderSt == '82') && order.paymentSt==10 && (order.returnMyWallet == 0 || order.returnBonus==0 ) && serviceOrderRefund[0].orderSt!=90 && serviceOrderRefund[0].returnSt!=30}">
												<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>退款处理中</span></a>
											</c-rt:if>
											<c-rt:if test="${(order.orderSt == '80'||order.orderSt == '81'||order.orderSt == '82') && order.paymentSt==10 && (order.returnMyWallet > 0 || order.returnBonus>0 ) && serviceOrderRefund[0].orderSt==90 && serviceOrderRefund[0].returnSt==30}">
												<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId=${order.orderId}" class="od-do-note"><span>退款完成</span></a>
											</c-rt:if>
										</c-rt:when>
										<c-rt:otherwise>
												<%--有service order 成立 --%>
												<c-rt:if test="${!empty serviceOrderRefund }">
													<c-rt:set var="refundOnce" value="N"/>
													<%--檢查是否相符的商品 --%>
													<c-rt:forEach items="${serviceOrderRefund}" var="serviceOrderRefund" varStatus="soci">	
													<c-rt:set var="paramsSop" value="${null }"/>
													${pu:reqSet('sopHql', 'from ServiceOrderProduct where serviceId=?')}
													${pu:listAdd('paramsSop', pu:toString(serviceOrderRefund.serviceId))}
													${pu:reqSet('serviceOrderProducts', pu:queryByHql(sopHql, pu:arrayGet('paramsSop'), null))}										
														<c-rt:forEach items="${serviceOrderProducts}" var="serviceOrderProduct" varStatus="sopi">	
														<%--有SERVICE ORDER成立 並且是這個商品，呈現單據狀態 --%>
															<c-rt:if test="${serviceOrderProduct.orderProdId == op.orderProdId && serviceOrderRefund.serviceId == serviceOrderProduct.serviceId && serviceOrderRefund.orderSt==90}">
																<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderProductId=${op.orderProdId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
																<c-rt:set var="refundOnce" value="Y"/>
															</c-rt:if>
														</c-rt:forEach>											
													</c-rt:forEach>
												</c-rt:if>
								    	</c-rt:otherwise>
									</c-rt:choose>   
							</c-rt:if>	
					</c-rt:when>
					
					<%--是 活動商品--%>
					<c-rt:otherwise>
						<c-rt:if test="${!empty order.orderProduct[0].logisticFinalDt  && order.orderSt == '35'}">
							<%--個別商品的退換貨期限 --%>
							<%--<fmt:formatDate var="receiveAfter7" value="${pu:addDays(pu:toDate(order.orderProduct[0].logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),7)}" pattern="yyyyMMddHHmm" />--%>
							<fmt:formatDate var="returnProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[0])}" pattern="yyyyMMddHHmm" />
							<%--出货日期后7天内 --%>								
							<c-rt:if test="${now < returnProductDeadline && order.orderProduct[0].prodStatus == 0}">
								<a href="${frontendContextPath}/member/serviceOrder/toReturnProduct.do?orderId=${order.orderId}" class="od-do-note"><span>我要退货</span></a>
							</c-rt:if>
						</c-rt:if>	
						
						<%--有service order 成立 退款--%>
						<c-rt:if test="${!empty serviceOrderRefund }">
							<%--檢查是否相符的订单 --%>
							<c-rt:forEach items="${serviceOrderRefund}" var="serviceOrderRefund" varStatus="soci">	
								<%--有SERVICE ORDER成立 並且是這個订单，呈現單據狀態 --%>
								<c-rt:if test="${serviceOrderRefund.orderId == order.orderId}">
										<c-rt:if test="${serviceOrderRefund.srcType==3}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId＝${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
										</c-rt:if>
										<c-rt:if test="${serviceOrderRefund.srcType==1 && serviceOrderRefund.orderSt==90}">
											<a href="${frontendContextPath}/member/serviceOrder/refund.do?orderId＝${order.orderId}" class="od-do-note"><span>${refundStatus.options[serviceOrderRefund.returnSt].name}</span></a>
										</c-rt:if>
								</c-rt:if>						
							</c-rt:forEach>
						</c-rt:if>	
						
						
						<c-rt:if test="${!empty order.orderProduct[0].logisticFinalDt  && order.orderSt == '35'}">
								<%--個別商品的退換貨期限 --%>
								<fmt:formatDate var="changeProductDeadline" value="${pu:addDays(pu:toDate(op.logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),fn:split(op.returnRule,'_')[1])}" pattern="yyyyMMddHHmm" />
								<%--<fmt:formatDate var="receiveAfter15" value="${pu:addDays(pu:toDate(order.orderProduct[0].logisticFinalDt,'yyyy-MM-dd HH:mm:ss.SSS'),15)}" pattern="yyyyMMddHHmm" />--%>
								<%--出货日期后15天内，可換 --%>								
								<c-rt:if test="${now < changeProductDeadline  && order.orderSt == '35' && order.orderProduct[0].prodStatus == 0}">
									<a href="${frontendContextPath}/member/serviceOrder/toChangeProduct.do?orderId=${order.orderId}" class="od-do-note"><span>我要换货</span></a>
				        		</c-rt:if>
							    <%--出货日期后15天後，只有維修--%>	
				          		<c-rt:if test="${empty serviceOrderRefund && now > changeProductDeadline && order.orderSt == '35' }">
				         			<a href="javascript:alertMaintain();" class="od-do-note"><span>维修查询</span></a>
								</c-rt:if>
						</c-rt:if>
												
					</c-rt:otherwise>
				</c-rt:choose>
			    </td>
			      	 <td class="east">
						<div class="od-pd">
							<a href="${frontendContextPath}/member/cs/page.do?page=request&orderId=${order.orderId}&productId=${op.prodId}" class="od-do-note"><span>询问</span></a> 
							<a href="${frontendContextPath}/member/cs/qaa.do?orderId=${order.orderId}" class="od-do-note"><span>记录</span></a>
						</div>
					 </td> 
			        </tr>
				     </c-rt:if>
				   </c-rt:forEach>
	      </table> 
	     	<p class="total">本次订购共 <strong class="txt-rd">${order.productSum}</strong> 项商品，商品总额：<span>￥<input type="text" value="${pu:rmb(order.totalPrice) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	      <p class="total">折抵优惠：<span>￥<input type="text" value="- ${pu:rmb(order.discount) }" class="show-money txt-bk" readonly="readonly">元</span></p>
	      <div class="total-line">
          <p class="total"><strong>合计金额</strong>：<span>￥<input type="text" value="${pu:rmb(order.amount) }" class="show-money txt-bk" readonly="readonly">元</span></p>
		      <p class="total ${changeShipfare=='Y'?'txt-rd':''}">运费：<span>￥<input type="text" value="+ ${pu:rmb(order.shipfare) }" class="show-money txt-bk ${changeShipfare=='Y'?'txt-rd':''}" readonly="readonly">元</span></p>
		      <p class="total ${changeCodFee=='Y'?'txt-rd':''}">货到付款手续费：<span>￥<input type="text" value="+ ${pu:rmb(order.codFee)}" class="show-money txt-bk ${changeCodFee=='Y'?'txt-rd':''}" readonly="readonly">元</span></p>
		      <p class="total">抵扣礼券：<span>￥<input type="text" value="- ${pu:rmb(order.coupon) }" class="show-money txt-bk" readonly="readonly">元</span></p>
		      <p class="total">折抵 <strong class="txt-rd"><c-rt:if test=  "${not empty order.orderBonusCampaign}">${order.bonus * order.orderBonusCampaign.offsetRate}</c-rt:if><c-rt:if test = "${empty order.orderBonusCampaign}">0</c-rt:if></strong> 积分：<span>￥<input type="text" value="- ${pu:rmb(order.bonus) }" class="show-money txt-bk" readonly="readonly">元</span></p>
        </div>
	      <div class="total-line"> 
		      <p class="total"><strong>订单金额：</strong><span>￥<input type="text" value="${pu:rmb(order.totalPrice - order.bonus - order.coupon + order.shipfare - order.discount + order.codFee) }" class="show-money txt-bk" readonly="readonly">元</span></p>
		      <p class="total">礼品卡支付： <span>￥<input type="text" value="- ${pu:rmb(order.giftcardBalance) }" class="show-money txt-bk" readonly="readonly">元</span></p> 
		      <p class="total ${changeMywallet=='Y'?'txt-rd':''}">账户余额支付： <span>￥<input type="text" value="- ${pu:rmb(order.myWallet) }" class="show-money txt-bk ${changeMywallet=='Y'?'txt-rd':''}" readonly="readonly">元</span></p>
		      <c-rt:if test="${order.paymentTp == '80'}"><p class="total">分期附加费：<span>￥<input type="text" value="+ ${pu:rmb(order.installmentFee) }" class="show-money txt-bk" readonly="readonly">元</span></p></c-rt:if>
	      </div>
	      <div class="total-line"> 
	      	<p class="total txt-m"><strong>剩余应付金额：</strong><strong class="txt-rd">￥<input type="text" value="${pu:rmb(order.mustPay) }" class="show-money txt-L" readonly="readonly">元</strong></p>
	      </div> 
	 		</div> 
      <!-- 訂單明細 --> 
      <!-- 訂單資訊 --> 
      <h3>订单信息</h3> 
      <div class="d-show"> 
        <ul> 
          <li class="w-1of2"><strong>订单编号：</strong>${order.orderId }</li> 
          <li class="w-1of2"><strong>订购时间：</strong><fmt-rt:formatDate value="${order.createDate }" pattern="yyyy-MM-dd HH:mm"/></li> 
          <c-rt:if test="${not empty order.tuangouId}">
          	${pu:listAdd('tuangouId', order.tuangouId) }
			${pu:reqSet('tuangou', pu:queryByHql('from ShelfTuangou where tuangouId=?', pu:arrayGet('tuangouId'), null)) }           	
          	<li class="w-1of1"><strong>活动时间：</strong><fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${tuangou[0].startDate }" /> 到 <fmt:formatDate pattern="yyyy-MM-dd HH:mm:ss" value="${tuangou[0].endDate }" /></li>
          	<li class="w-1of1"><strong>团购名称：</strong><span class="tg-name"><a href="${frontendContextPath}/tuangou/product.do?tuangouId=${order.tuangouId}">${tuangou[0].promoteName}</a></span></li>  
          </c-rt:if>
        </ul> 
      </div> 
      <!-- 訂單資訊 --> 
      <!-- 收件人 --> 
      <a name="receiverInfo"></a>
      <h3>收货人信息</h3> 
      <div class="d-show"> 
        <ul> 
          <li class="w-1of2 ${changeReceiverName=='Y'?'txt-rd':''}"><strong>姓 名：</strong>${order.receiverName!=''?order.receiverName:'--' }</li> 
          
           <li class="w-1of2 ${changeReceiverMobile=='Y'?'txt-rd':'' }">
           <strong>手机号码：</strong>${order.receiverMobile!=''?order.receiverMobile:'--' }
           </li>
          <li class="w-1of2 ${changeReceiverPhone=='Y'?'txt-rd':''}" >
          	<strong>固定电话：</strong><c-rt:if test="${order.receiverPhone!=' '}"><c-rt:if test="${order.receiverPhoneArea!=' ' }">${order.receiverPhoneArea }-</c-rt:if>${order.receiverPhone } <c-rt:if test="${order.receiverExt!=' '}">分机：${order.receiverExt}</c-rt:if>
          	</c-rt:if>
          	<c-rt:if test="${order.receiverPhone==' '}">
          		--
          	</c-rt:if>
          	
           </li>
           <li class="w-1of1 ${changeReceiverAddr=='Y'?' txt-rd':''}"><div><strong>地 址：</strong></div><div>${order.receiverProvince }，${order.receiverCity }，${order.receiverArea }，${order.receiverAddr }，${order.receiverZip }</div></li> 
          <c-rt:if test="${member.applySource eq 'nonmember'}">
	      <li class="w-1of1"><label><strong>联络邮箱：</strong></label>${order.receiverEmail}</li>
	      </c-rt:if>
        </ul> 
      </div> 
      <!-- 收件人 --> 
      <!-- 送貨資訊 --> 
      <h3>送货信息</h3> 
      <div class="d-show"> 
       <c-rt:if test="${order.receiverTp!='30'}">
        <ul> 
          <li class="w-1of2"><strong>送货方式：</strong>${pu:menuOption('Order.ReceiverTp', order.receiverTp).name }</li>
          <li class="w-1of2"><strong>发货日期：</strong>
          <c-rt:if test="${!empty order.orderProduct[0].logisticSendDt}"><fmt-rt:formatDate value="${order.orderProduct[0].logisticSendDt }" pattern="yyyy-MM-dd HH:mm"/></c-rt:if>
          <c-rt:if test="${empty order.orderProduct[0].logisticSendDt }">--</c-rt:if> 
          </li> 
        </ul> 
        </c-rt:if>
        <c-rt:if test="${order.receiverTp=='30'}">
         <ul> 
          <li class="w-1of2"><strong>运送方式：</strong>达芙妮门店取货</li>
          <li class="w-1of2"><strong>发货日期：</strong><c-rt:if test="${!empty order.orderProduct[0].logisticSendDt}"><fmt-rt:formatDate value="${order.orderProduct[0].logisticSendDt }" pattern="yyyy-MM-dd"/></c-rt:if>
          <c-rt:if test="${empty order.orderProduct[0].logisticSendDt }">--</c-rt:if> 
          </li>
          <li class="w-1of2"><strong>到店日期：</strong><c-rt:if test="${!empty order.logisticFinalDt}"><fmt-rt:formatDate value="${order.logisticFinalDt }" pattern="yyyy-MM-dd"/></c-rt:if>
          <c-rt:if test="${empty order.logisticFinalDt }">--</c-rt:if> 
          </li> 
        </ul>
        </c-rt:if>
      </div> 
      <!-- 送貨資訊 --> 
      <!-- 付款方式 --> 
      <h3>付款信息</h3> 
      <div class="d-show"> 
      <c-rt:choose>
      	
      	<c-rt:when test="${order.paymentSt=='00' && order.paymentTp=='10'}">
      	<!-- 待付款 ／银行 -->
        <ul> 
        <c-rt:choose>
	        <c-rt:when test="${order.myWallet != 0 and order.giftcardBalance !=0}">
	          <li class="w-1of1"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/>,我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li> 
			 		</c-rt:when>
			 		<c-rt:otherwise>
			 			<c-rt:if test="${order.myWallet != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/></li>
			 			</c-rt:if>
			 			<c-rt:if test="${order.giftcardBalance != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li>
			 			</c-rt:if>
			 		</c-rt:otherwise>
		 		</c-rt:choose>
          <li class="w-1of1 ${changePaymentTp=='Y'?'txt-rd':'' }"><strong><c-rt:if test="${order.myWallet==0}">等待付款：</c-rt:if><c-rt:if test="${order.myWallet!=0}">余额付款：</c-rt:if></strong>
银行转帐支付￥<fmt:formatNumber pattern="######0.0"  value="${order.mustPay}"/> <c-rt:if test="${order.orderSt!='00'}">(請於<fmt-rt:formatDate value="${order.deadline}" pattern="yyyy-MM-dd HH:mm"/>以前进行支付) </c-rt:if> <a href="/help/5_bank.html" target="_blank">查看银行转帐帮助</a>
		</li> 
        </ul> 
        </c-rt:when>
        
        <c-rt:when test="${order.paymentSt=='10' && order.paymentTp=='10'}">
        <!-- 已付款 ／银行 -->
        <ul> 
        <c-rt:choose>
	        <c-rt:when test="${order.myWallet != 0 and order.giftcardBalance !=0}">
	          <li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/>,我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li> 
			 		</c-rt:when>
			 		<c-rt:otherwise>
			 			<c-rt:if test="${order.myWallet != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/></li>
			 			</c-rt:if>
			 			<c-rt:if test="${order.giftcardBalance != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li>
			 			</c-rt:if>
			 		</c-rt:otherwise>
			 	</c-rt:choose>
          <li class="w-1of1"><strong>已经付款：</strong>
银行转帐支付￥<fmt:formatNumber pattern="######0.0"  value="${order.mustPay}"/>
		</li> 
        </ul> 
        </c-rt:when>
        
        <c-rt:when test="${order.paymentSt=='00' && order.paymentTp=='20'}">
        <!-- 待付款 ／邮局 -->
        <ul> 
        <c-rt:choose>
	        <c-rt:when test="${order.myWallet != 0 and order.giftcardBalance !=0}">
	          <li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/>,我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li> 
			 		</c-rt:when>
			 		<c-rt:otherwise>
			 			<c-rt:if test="${order.myWallet != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/></li>
			 			</c-rt:if>
			 			<c-rt:if test="${order.giftcardBalance != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li>
			 			</c-rt:if>
			 		</c-rt:otherwise>
			 	</c-rt:choose>
          <li class="w-1of1 ${changePaymentTp=='Y'?'txt-rd':''}"><strong><c-rt:if test="${order.myWallet == 0}">等待付款：</c-rt:if><c-rt:if test="${order.myWallet != 0}">余额付款：</c-rt:if></strong>
邮局汇款支付￥<fmt:formatNumber pattern="######0.0"  value="${order.mustPay}"/> <c-rt:if test="${order.orderSt!='00'}">(請於<fmt-rt:formatDate value="${order.deadline}" pattern="yyyy-MM-dd HH:mm"/>以前进行支付)</c-rt:if>  <a href="/help/5_post.html" target="_blank">查看邮局汇款帮助</a>
		</li> 
        </ul> 
        </c-rt:when>
        
        <c-rt:when test="${order.paymentSt=='10' && order.paymentTp=='20'}">
         <!-- 已付款 ／邮局 -->
        <ul> 
        <c-rt:choose>
	        <c-rt:when test="${order.myWallet != 0 and order.giftcardBalance !=0}">
	          <li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/>,我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li> 
			 		</c-rt:when>
			 		<c-rt:otherwise>
			 			<c-rt:if test="${order.myWallet != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/></li>
			 			</c-rt:if>
			 			<c-rt:if test="${order.giftcardBalance != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li>
			 			</c-rt:if>
			 		</c-rt:otherwise>
			 	</c-rt:choose>
          <li class="w-1of1"><strong>已经付款：</strong>
邮局汇款支付￥<fmt:formatNumber pattern="######0.0"  value="${order.mustPay}"/>
		</li> 
        </ul> 
        </c-rt:when>
        
        <c-rt:when test="${order.paymentTp=='30' or order.paymentTp=='60'}">
         <!-- 货到付款 -->
        <ul> 
        <c-rt:choose>
	        <c-rt:when test="${order.myWallet != 0 and order.giftcardBalance !=0}">
	          <li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/>,我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li> 
			 		</c-rt:when>
			 		<c-rt:otherwise>
			 			<c-rt:if test="${order.myWallet != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/></li>
			 			</c-rt:if>
			 			<c-rt:if test="${order.giftcardBalance != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li>
			 			</c-rt:if>
			 		</c-rt:otherwise>
			 	</c-rt:choose>
	      <li class="w-1of1 ${changePaymentTp=='Y'?'txt-rd':'' }"><strong>${pu:menuOption('Order.PaymentTp',pu:toString(order.paymentTp)).name }</strong>
	      
		</li> 
 		
        </ul> 
        </c-rt:when>
        
        <c-rt:when test="${order.paymentSt=='10' && order.paymentTp=='40'}">
        <!-- 帐 户余额  -->
        <ul>
				<c-rt:choose>
	        <c-rt:when test="${order.myWallet != 0 and order.giftcardBalance !=0}">
	          <li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/>,我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li> 
			 		</c-rt:when>
			 		<c-rt:otherwise>
			 			<c-rt:if test="${order.myWallet != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/></li>
			 			</c-rt:if>
			 			<c-rt:if test="${order.giftcardBalance != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li>
			 			</c-rt:if>
			 		</c-rt:otherwise>
			 	</c-rt:choose>
        </ul>
        </c-rt:when>
        
        <c-rt:when test="${order.paymentSt=='00' && (order.paymentTp=='50'||order.paymentTp=='70'||order.paymentTp=='80')}">
        <!-- 待付款 ／第三方支付 -->
        <ul> 
				<c-rt:choose>
	        <c-rt:when test="${order.myWallet != 0 and order.giftcardBalance !=0}">
	          <li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/>,我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li> 
			 		</c-rt:when>
			 		<c-rt:otherwise>
			 			<c-rt:if test="${order.myWallet != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/></li>
			 			</c-rt:if>
			 			<c-rt:if test="${order.giftcardBalance != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li>
			 			</c-rt:if>
			 		</c-rt:otherwise>
			 	</c-rt:choose>
          <li class="w-1of1 ${changePaymentTp=='Y'?'txt-rd':''}"><strong><c-rt:if test="${order.myWallet==0}">等待付款：</c-rt:if><c-rt:if test="${order.myWallet!= 0}">余额付款：</c-rt:if></strong>
【网上支付方式】支付￥<fmt:formatNumber pattern="######0.0"  value="${order.mustPay}"/>  <c-rt:if test="${order.orderSt!='00'}">(請於<fmt-rt:formatDate value="${order.deadline}" pattern="yyyy-MM-dd HH:mm"/>以前进行网上支付)</c-rt:if> <a href="/help/5_online.html" target="_blank">查看网上支付帮助</a>
		</li> 
        </ul> 
        </c-rt:when>
        
        <c-rt:when test="${order.paymentSt=='10' && (order.paymentTp=='50'||order.paymentTp=='70'||order.paymentTp=='80')}">
        <!-- 已付款 ／第三方支付 -->
        <ul> 
				<c-rt:choose>
	        <c-rt:when test="${order.myWallet != 0 and order.giftcardBalance !=0}">
	          <li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/>,我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li> 
			 		</c-rt:when>
			 		<c-rt:otherwise>
			 			<c-rt:if test="${order.myWallet != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的账户余额支付￥<fmt:formatNumber pattern="######0.0"  value="${order.myWallet}"/></li>
			 			</c-rt:if>
			 			<c-rt:if test="${order.giftcardBalance != 0}">
			 				<li class="w-1of2"><strong>已经付款：</strong>我的礼品卡支付￥<fmt:formatNumber pattern="######0.0"  value="${order.giftcardBalance}"/></li>
			 			</c-rt:if>
			 		</c-rt:otherwise>
			 	</c-rt:choose>
          <li class="w-1of1"><strong>已经付款：</strong>
【网上支付方式】支付￥<fmt:formatNumber pattern="######0.0"  value="${order.mustPay}"/>  
		</li> 
        </ul> 
        </c-rt:when>
       </c-rt:choose>
      </div> 
      <!-- 付款方式 --> 
       <!-- 发票信息 --> 
      <h3>发票信息</h3> 
      <div class="d-show"> 
        <ul> 
          <li class="w-1of2"><strong>发票抬头：</strong>${order.invoiceTp=='01'?"个人":order.invoiceTitle}</li> 
        </ul> 
      </div> 
    <!-- START 商品缺货配送处理方法 -->   
	<c-rt:if test="${fn:length(order.orderProduct)>1 && order.receiverTp != '30'}">      
	<h3>商品缺货配送处理方法</h3>
	<div class="d-show">
	<ul><li class="w-1of1"><strong>商品缺货配送处理方法：</strong><c-rt:if test="${order.allowSplit == 'Y'}">有货先发</c-rt:if><c-rt:if test="${order.allowSplit != 'Y'}">货齐再发</c-rt:if></li></ul>
	</div>
	</c-rt:if>
	<!-- END 商品缺货配送处理方法 -->
      <!-- 积分 --> 
      <h3>积分说明</h3> 
      <div class="d-show"> 
        <ul> 
          <li class="w-1of1">当订单状态变为交易成功后，才可以查询具体积分明细 。
          
          </li> 
        </ul> 
      </div> 
      <!-- 积分 --> 
     </div> 
   <!-- 我的訂單 --> 
  </div> 
  <!-- content end --> 
</c-rt:if>
<c-rt:if test="${order.memberId!=mu:memberId()}">
您无权查看本订单
</c-rt:if>
<div id="divPostOffice"></div> 
<div id="cancelDialog" style="display:none" class="od-cancel-dailog"></div>
<div id="divBank"></div> 
